Plugin Directory

Changeset 3174193


Ignore:
Timestamp:
10/23/2024 09:55:29 AM (17 months ago)
Author:
mxp
Message:

update 3.2.6

Location:
mxp-dev-tools
Files:
5 edited
8 copied

Legend:

Unmodified
Added
Removed
  • mxp-dev-tools/tags/3.2.6/index.php

    r3168230 r3174193  
    77 * Requires PHP: 5.6
    88 * Tested up to: 6.6
    9  * Stable tag: 3.2.5
    10  * Version: 3.2.5
     9 * Stable tag: 3.2.6
     10 * Version: 3.2.6
    1111 * Author: Chun
    1212 * Author URI: https://www.mxp.tw/contact/
     
    3939    use SearchReplace;
    4040    use Utility;
    41     static $VERSION = '3.2.5';
     41    static $VERSION = '3.2.6';
    4242    private $themeforest_api_base_url = 'https://api.envato.com/v3';
    4343    protected static $instance = null;
  • mxp-dev-tools/tags/3.2.6/mxp-login-path.php

    r3168230 r3174193  
    77 * Requires PHP: 5.6
    88 * Tested up to: 6.6
    9  * Stable tag: 3.2.5
    10  * Version: 3.2.5
     9 * Stable tag: 3.2.6
     10 * Version: 3.2.6
    1111 * Author: Chun
    1212 * Author URI: https://www.mxp.tw/contact/
  • mxp-dev-tools/tags/3.2.6/mxp-site-manager.php

    r3168230 r3174193  
    77 * Requires PHP: 5.6
    88 * Tested up to: 6.6
    9  * Stable tag: 3.2.5
    10  * Version: 3.2.5
     9 * Stable tag: 3.2.6
     10 * Version: 3.2.6
    1111 * Author: Chun
    1212 * Author URI: https://www.mxp.tw/contact/
     
    3939class MDTSiteManager {
    4040    public $plugin_slug = 'mdt-site-manager';
    41     public static $VERSION = '3.2.5';
     41    public static $VERSION = '3.2.6';
    4242
    4343    public function __construct() {
     
    6565        }
    6666        // 新增「設定」中的外掛選單
    67         if (is_super_admin()) {
    68             if (is_multisite()) {
    69                 add_action('network_admin_menu', array($this, 'network_admin_menu'));
    70             }
    71             add_action('admin_menu', array($this, 'admin_menu'));
    72         }
     67        if (is_multisite()) {
     68            add_action('network_admin_menu', array($this, 'network_admin_menu'));
     69        }
     70        add_action('admin_menu', array($this, 'admin_menu'));
    7371    }
    7472
     
    9896            $display = true;
    9997        }
    100         if ($display) {
    101             add_options_page(
     98        if (apply_filters('mxp_dev_overwrite_site_manager_display', $display)) {
     99            add_management_page(
    102100                'Site Manager',
    103101                'Site Manager',
    104                 'manage_options',
     102                apply_filters('mxp_dev_overwrite_site_manager_cap', 'manage_options'),
    105103                'mxp-site-manager',
    106104                array(
     
    117115            $display = true;
    118116        }
    119         if ($display) {
    120             add_menu_page('Site Manager', 'Site Manager', 'administrator', $this->plugin_slug, array($this, 'settings_page'), 'dashicons-admin-generic');
     117        if (apply_filters('mxp_dev_overwrite_site_manager_mu_display', $display)) {
     118            add_menu_page('Site Manager', 'Site Manager', apply_filters('mxp_dev_overwrite_site_manager_mu_cap', 'administrator'), $this->plugin_slug, array($this, 'settings_page'), 'dashicons-admin-generic');
    121119        }
    122120    }
  • mxp-dev-tools/tags/3.2.6/mxp-snippets.php

    r3168230 r3174193  
    77 * Requires PHP: 5.6
    88 * Tested up to: 6.6
    9  * Stable tag: 3.2.5
    10  * Version: 3.2.5
     9 * Stable tag: 3.2.6
     10 * Version: 3.2.6
    1111 * Author: Chun
    1212 * Author URI: https://www.mxp.tw/contact/
  • mxp-dev-tools/tags/3.2.6/readme.txt

    r3168230 r3174193  
    66Requires PHP: 5.6
    77Tested up to: 6.6
    8 Stable tag: 3.2.5
     8Stable tag: 3.2.6
    99License: GPLv2 or later
    1010License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    7777
    7878== Changelog ==
     79
     80= 3.2.6 =
     81
     82* 調整站點管理的顯示與使用的權限設計
    7983
    8084= 3.2.5 =
  • mxp-dev-tools/trunk/index.php

    r3168230 r3174193  
    77 * Requires PHP: 5.6
    88 * Tested up to: 6.6
    9  * Stable tag: 3.2.5
    10  * Version: 3.2.5
     9 * Stable tag: 3.2.6
     10 * Version: 3.2.6
    1111 * Author: Chun
    1212 * Author URI: https://www.mxp.tw/contact/
     
    3939    use SearchReplace;
    4040    use Utility;
    41     static $VERSION = '3.2.5';
     41    static $VERSION = '3.2.6';
    4242    private $themeforest_api_base_url = 'https://api.envato.com/v3';
    4343    protected static $instance = null;
  • mxp-dev-tools/trunk/mxp-login-path.php

    r3168230 r3174193  
    77 * Requires PHP: 5.6
    88 * Tested up to: 6.6
    9  * Stable tag: 3.2.5
    10  * Version: 3.2.5
     9 * Stable tag: 3.2.6
     10 * Version: 3.2.6
    1111 * Author: Chun
    1212 * Author URI: https://www.mxp.tw/contact/
  • mxp-dev-tools/trunk/mxp-site-manager.php

    r3168230 r3174193  
    77 * Requires PHP: 5.6
    88 * Tested up to: 6.6
    9  * Stable tag: 3.2.5
    10  * Version: 3.2.5
     9 * Stable tag: 3.2.6
     10 * Version: 3.2.6
    1111 * Author: Chun
    1212 * Author URI: https://www.mxp.tw/contact/
     
    3939class MDTSiteManager {
    4040    public $plugin_slug = 'mdt-site-manager';
    41     public static $VERSION = '3.2.5';
     41    public static $VERSION = '3.2.6';
    4242
    4343    public function __construct() {
     
    6565        }
    6666        // 新增「設定」中的外掛選單
    67         if (is_super_admin()) {
    68             if (is_multisite()) {
    69                 add_action('network_admin_menu', array($this, 'network_admin_menu'));
    70             }
    71             add_action('admin_menu', array($this, 'admin_menu'));
    72         }
     67        if (is_multisite()) {
     68            add_action('network_admin_menu', array($this, 'network_admin_menu'));
     69        }
     70        add_action('admin_menu', array($this, 'admin_menu'));
    7371    }
    7472
     
    9896            $display = true;
    9997        }
    100         if ($display) {
    101             add_options_page(
     98        if (apply_filters('mxp_dev_overwrite_site_manager_display', $display)) {
     99            add_management_page(
    102100                'Site Manager',
    103101                'Site Manager',
    104                 'manage_options',
     102                apply_filters('mxp_dev_overwrite_site_manager_cap', 'manage_options'),
    105103                'mxp-site-manager',
    106104                array(
     
    117115            $display = true;
    118116        }
    119         if ($display) {
    120             add_menu_page('Site Manager', 'Site Manager', 'administrator', $this->plugin_slug, array($this, 'settings_page'), 'dashicons-admin-generic');
     117        if (apply_filters('mxp_dev_overwrite_site_manager_mu_display', $display)) {
     118            add_menu_page('Site Manager', 'Site Manager', apply_filters('mxp_dev_overwrite_site_manager_mu_cap', 'administrator'), $this->plugin_slug, array($this, 'settings_page'), 'dashicons-admin-generic');
    121119        }
    122120    }
  • mxp-dev-tools/trunk/mxp-snippets.php

    r3168230 r3174193  
    77 * Requires PHP: 5.6
    88 * Tested up to: 6.6
    9  * Stable tag: 3.2.5
    10  * Version: 3.2.5
     9 * Stable tag: 3.2.6
     10 * Version: 3.2.6
    1111 * Author: Chun
    1212 * Author URI: https://www.mxp.tw/contact/
  • mxp-dev-tools/trunk/readme.txt

    r3168230 r3174193  
    66Requires PHP: 5.6
    77Tested up to: 6.6
    8 Stable tag: 3.2.5
     8Stable tag: 3.2.6
    99License: GPLv2 or later
    1010License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    7777
    7878== Changelog ==
     79
     80= 3.2.6 =
     81
     82* 調整站點管理的顯示與使用的權限設計
    7983
    8084= 3.2.5 =
Note: See TracChangeset for help on using the changeset viewer.