Plugin Directory

Changeset 1485180


Ignore:
Timestamp:
08/28/2016 06:33:54 PM (9 years ago)
Author:
rootabout
Message:

update 1.1.11 better UX settings load, the settings no longer get updated into the database based on plugin/theme version but by their contents

Location:
admin-builder/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • admin-builder/trunk/admin_builder.php

    r1484753 r1485180  
    44  Plugin URI: http://admin-builder.com
    55  Description: A plugin that generates admin panel pages & posts,sidebars,custom admin pages with tabs, custom post types, rest routes, meta boxes and fields (with unlimited textbox, textarea, checkbox, custom select (dropdown box), datepicker, timepicker, colorpicker, upload media fields, with configurable options) Based on what's exported from http://admin-builder.com
    6   Version: 1.1.10
     6  Version: 1.1.11
    77  Author: rootabout
    88  Author URI: http://admin-builder.com
     
    1313 require_once 'inc/abCore.php';
    1414
    15                  function abLoadPluginFirst($plugin, $network_activation)
    16                  {
    17                      // ensure path to this file is via main wp plugin path
    18                      $wp_path_to_this_file = preg_replace('/(.*)plugins\/(.*)$/', WP_PLUGIN_DIR.'/$2', __FILE__);
    19                      $this_plugin = plugin_basename(trim($wp_path_to_this_file));
    20                      $active_plugins = get_option('active_plugins');
    21                      $this_plugin_key = array_search($this_plugin, $active_plugins);
    22                      if ($this_plugin_key) { // if it's 0 it's the first plugin already, no need to continue
    23                          array_splice($active_plugins, $this_plugin_key, 1);
    24                          array_unshift($active_plugins, $this_plugin);
    25                          update_option('active_plugins', $active_plugins);
    26                      }
    27                  }
    28                  add_action('activated_plugin', 'abLoadPluginFirst',10,2);
     15function abLoadPluginFirst($plugin, $network_activation)
     16{
     17    // ensure path to this file is via main wp plugin path
     18   $wp_path_to_this_file = preg_replace('/(.*)plugins\/(.*)$/', WP_PLUGIN_DIR.'/$2', __FILE__);
     19    $this_plugin = plugin_basename(trim($wp_path_to_this_file));
     20    $active_plugins = get_option('active_plugins');
     21    $this_plugin_key = array_search($this_plugin, $active_plugins);
     22    if ($this_plugin_key) { // if it's 0 it's the first plugin already, no need to continue
     23       array_splice($active_plugins, $this_plugin_key, 1);
     24        array_unshift($active_plugins, $this_plugin);
     25        update_option('active_plugins', $active_plugins);
     26    }
     27}
     28add_action('activated_plugin', 'abLoadPluginFirst', 10, 2);
  • admin-builder/trunk/inc/abGeneral.php

    r1455963 r1485180  
    5555            $exists = false; // the settings are entirely new?
    5656            $newArr = array();
     57
    5758            if (!empty($dataArr) && is_array($dataArr)) {
    5859                foreach ($dataArr as $item) {
     
    6162                    }
    6263                // check if name and version is up to date in the db
    63                 if ($item['ver'] != $sVersion && $item['name'] == $sName) {
     64                if ($item['sett'] != $jsonString && $item['name'] == $sName) {
    6465                    $item['ver'] = $sVersion;
    6566                    $item['sett'] = $jsonString;
  • admin-builder/trunk/readme.txt

    r1484766 r1485180  
    55Requires at least: 4.0
    66Tested up to: 4.6
    7 Stable tag: 1.1.10
     7Stable tag: 1.1.11
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
    1010
    11 Generates admin panel functionality for pages & posts, unlimited sortable meta boxes and unlimited sortable fields
     11Generates admin panel functionality for pages & posts, unlimited sortable meta boxes, custom post types, pages with tabs, sidebars, rest routes declarations with options and unlimited sortable fields
    1212
    1313== Description ==
     
    1616Admin Builder is a tool that helps developers generate admin panel sections fast and easy. You can create unlimited meta
    1717boxes with unlimited fields of different types ( textbox, textarea, select, radio buttons, timepicker , datepicker, colorpicker, media upload ) and multiple configurable options for each type. for posts and pages.
     18You can also create Unlimited Sidebars, Rest Routes, Admin pages with unlimited tabs, custom post types.
    1819A few notes about the sections above:
    1920
     
    121122Fixed a styling issue that was disabling screen options
    122123
    123 = 1.1.9 = 
     124= 1.1.9 =
    124125Removed bootstrap css
    125126
    126127= 1.1.10 =
    127128Re-added bootstrap icons functionality for css
     129
     130= 1.1.11 =
     131Settings are no longer updated in the database based on plugin/theme version, but are updated based on themselves, if they are different, only then the configured settings change. -> Improvement in UX
    128132
    129133== Arbitrary section ==
Note: See TracChangeset for help on using the changeset viewer.