Plugin Directory

Changeset 3078487


Ignore:
Timestamp:
04/29/2024 08:00:10 AM (23 months ago)
Author:
mxp
Message:

update 3.1.6

Location:
mxp-dev-tools
Files:
1 deleted
7 edited
18 copied

Legend:

Unmodified
Added
Removed
  • mxp-dev-tools/tags/3.1.6/includes/assets/js/db-optimize/app.js

    r3078475 r3078487  
    406406                }
    407407                $.ajaxQueue.run();
    408                 $('#go_clean_postmeta').text('清除中...請勿重新整理頁面。');
     408                $('#go_clean_usermeta').text('清除中...請勿重新整理頁面。');
    409409            }
    410410        });
  • mxp-dev-tools/tags/3.1.6/includes/db-optimize.php

    r3078475 r3078487  
    13791379        $step     = sanitize_text_field($_REQUEST['step']);
    13801380        $meta_ids = isset($_REQUEST['meta_ids']) ? $_REQUEST['meta_ids'] : '';
     1381
    13811382        if (!empty($meta_ids) && !is_array($meta_ids)) {
    13821383            wp_send_json_error('請求參數有誤!');
    13831384        }
     1385
     1386        if (is_array($meta_ids)) {
     1387            $meta_ids = array_map('intval', $meta_ids);
     1388        }
     1389
    13841390        if (!isset($_REQUEST['nonce']) || !wp_verify_nonce($_REQUEST['nonce'], 'mxp-ajax-nonce-for-db-optimize')) {
    13851391            wp_send_json_error('請求驗證有誤!');
    13861392        }
     1393
    13871394        global $wpdb;
    13881395        if ($step == 1) {
     
    14171424        $step     = sanitize_text_field($_REQUEST['step']);
    14181425        $meta_ids = isset($_REQUEST['meta_ids']) ? $_REQUEST['meta_ids'] : '';
     1426
    14191427        if (!empty($meta_ids) && !is_array($meta_ids)) {
    14201428            wp_send_json_error('請求參數有誤!');
    14211429        }
     1430
     1431        if (is_array($meta_ids)) {
     1432            $meta_ids = array_map('intval', $meta_ids);
     1433        }
     1434
    14221435        if (!isset($_REQUEST['nonce']) || !wp_verify_nonce($_REQUEST['nonce'], 'mxp-ajax-nonce-for-db-optimize')) {
    14231436            wp_send_json_error('請求驗證有誤!');
    14241437        }
     1438
    14251439        global $wpdb;
    14261440        if ($step == 1) {
  • mxp-dev-tools/tags/3.1.6/index.php

    r3078475 r3078487  
    44 * Plugin URI: https://goo.gl/2gLq18
    55 * Description: 一介資男の常用外掛整理與常用開發功能整合外掛。
    6  * Version: 3.1.5
     6 * Version: 3.1.6
    77 * Author: Chun
    88 * Author URI: https://www.mxp.tw/contact/
     
    3535    use SearchReplace;
    3636    use Utility;
    37     static $VERSION                   = '3.1.5';
     37    static $VERSION                   = '3.1.6';
    3838    private $themeforest_api_base_url = 'https://api.envato.com/v3';
    3939    protected static $instance        = null;
  • mxp-dev-tools/tags/3.1.6/mxp-login-path.php

    r3078475 r3078487  
    44 * Plugin URI: https://tw.wordpress.org/plugins/mxp-dev-tools/
    55 * Description: 隱藏後台登入位置工具。啟用即更改預設登入網址為 /admin-staff/
    6  * Version: 3.1.5
     6 * Version: 3.1.6
    77 * Author: Chun
    88 * Author URI: https://www.mxp.tw/contact/
  • mxp-dev-tools/tags/3.1.6/mxp-site-manager.php

    r3078475 r3078487  
    44 * Plugin URI: https://tw.wordpress.org/plugins/mxp-dev-tools/
    55 * Description: 管理多個 WordPress 站點的工具。
    6  * Version: 3.1.5
     6 * Version: 3.1.6
    77 * Author: Chun
    88 * Author URI: https://www.mxp.tw/contact/
     
    3535class MDTSiteManager {
    3636    public $plugin_slug    = 'mdt-site-manager';
    37     public static $VERSION = '3.1.5';
     37    public static $VERSION = '3.1.6';
    3838
    3939    public function __construct() {
  • mxp-dev-tools/tags/3.1.6/mxp-snippets.php

    r3078475 r3078487  
    44 * Plugin URI: https://tw.wordpress.org/plugins/mxp-dev-tools/
    55 * Description: 整合 GitHub 中常用的程式碼片段。請注意,並非所有網站都適用全部的選項,有進階需求可以透過設定 wp-config.php 中此外掛預設常數,啟用或停用部分功能。
    6  * Version: 3.1.5
     6 * Version: 3.1.6
    77 * Author: Chun
    88 * Author URI: https://www.mxp.tw/contact/
  • mxp-dev-tools/tags/3.1.6/readme.txt

    r3078475 r3078487  
    66Requires PHP: 5.6
    77Tested up to: 6.5
    8 Stable tag: 3.1.5
     8Stable tag: 3.1.6
    99License: GPLv2 or later
    1010License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    7979== Changelog ==
    8080
    81 = 3.1.5 =
     81= 3.1.6 =
    8282
    8383* 新增清除重複 User/Post Meta 資料的最佳化資料庫的功能,參考:  [Cleanup Duplicate Meta](https://tw.wordpress.org/plugins/cleanup-duplicate-meta/)
  • mxp-dev-tools/trunk/includes/assets/js/db-optimize/app.js

    r3078475 r3078487  
    406406                }
    407407                $.ajaxQueue.run();
    408                 $('#go_clean_postmeta').text('清除中...請勿重新整理頁面。');
     408                $('#go_clean_usermeta').text('清除中...請勿重新整理頁面。');
    409409            }
    410410        });
  • mxp-dev-tools/trunk/includes/db-optimize.php

    r3078475 r3078487  
    13791379        $step     = sanitize_text_field($_REQUEST['step']);
    13801380        $meta_ids = isset($_REQUEST['meta_ids']) ? $_REQUEST['meta_ids'] : '';
     1381
    13811382        if (!empty($meta_ids) && !is_array($meta_ids)) {
    13821383            wp_send_json_error('請求參數有誤!');
    13831384        }
     1385
     1386        if (is_array($meta_ids)) {
     1387            $meta_ids = array_map('intval', $meta_ids);
     1388        }
     1389
    13841390        if (!isset($_REQUEST['nonce']) || !wp_verify_nonce($_REQUEST['nonce'], 'mxp-ajax-nonce-for-db-optimize')) {
    13851391            wp_send_json_error('請求驗證有誤!');
    13861392        }
     1393
    13871394        global $wpdb;
    13881395        if ($step == 1) {
     
    14171424        $step     = sanitize_text_field($_REQUEST['step']);
    14181425        $meta_ids = isset($_REQUEST['meta_ids']) ? $_REQUEST['meta_ids'] : '';
     1426
    14191427        if (!empty($meta_ids) && !is_array($meta_ids)) {
    14201428            wp_send_json_error('請求參數有誤!');
    14211429        }
     1430
     1431        if (is_array($meta_ids)) {
     1432            $meta_ids = array_map('intval', $meta_ids);
     1433        }
     1434
    14221435        if (!isset($_REQUEST['nonce']) || !wp_verify_nonce($_REQUEST['nonce'], 'mxp-ajax-nonce-for-db-optimize')) {
    14231436            wp_send_json_error('請求驗證有誤!');
    14241437        }
     1438
    14251439        global $wpdb;
    14261440        if ($step == 1) {
  • mxp-dev-tools/trunk/index.php

    r3078475 r3078487  
    44 * Plugin URI: https://goo.gl/2gLq18
    55 * Description: 一介資男の常用外掛整理與常用開發功能整合外掛。
    6  * Version: 3.1.5
     6 * Version: 3.1.6
    77 * Author: Chun
    88 * Author URI: https://www.mxp.tw/contact/
     
    3535    use SearchReplace;
    3636    use Utility;
    37     static $VERSION                   = '3.1.5';
     37    static $VERSION                   = '3.1.6';
    3838    private $themeforest_api_base_url = 'https://api.envato.com/v3';
    3939    protected static $instance        = null;
  • mxp-dev-tools/trunk/mxp-login-path.php

    r3078475 r3078487  
    44 * Plugin URI: https://tw.wordpress.org/plugins/mxp-dev-tools/
    55 * Description: 隱藏後台登入位置工具。啟用即更改預設登入網址為 /admin-staff/
    6  * Version: 3.1.5
     6 * Version: 3.1.6
    77 * Author: Chun
    88 * Author URI: https://www.mxp.tw/contact/
  • mxp-dev-tools/trunk/mxp-site-manager.php

    r3078475 r3078487  
    44 * Plugin URI: https://tw.wordpress.org/plugins/mxp-dev-tools/
    55 * Description: 管理多個 WordPress 站點的工具。
    6  * Version: 3.1.5
     6 * Version: 3.1.6
    77 * Author: Chun
    88 * Author URI: https://www.mxp.tw/contact/
     
    3535class MDTSiteManager {
    3636    public $plugin_slug    = 'mdt-site-manager';
    37     public static $VERSION = '3.1.5';
     37    public static $VERSION = '3.1.6';
    3838
    3939    public function __construct() {
  • mxp-dev-tools/trunk/mxp-snippets.php

    r3078475 r3078487  
    44 * Plugin URI: https://tw.wordpress.org/plugins/mxp-dev-tools/
    55 * Description: 整合 GitHub 中常用的程式碼片段。請注意,並非所有網站都適用全部的選項,有進階需求可以透過設定 wp-config.php 中此外掛預設常數,啟用或停用部分功能。
    6  * Version: 3.1.5
     6 * Version: 3.1.6
    77 * Author: Chun
    88 * Author URI: https://www.mxp.tw/contact/
  • mxp-dev-tools/trunk/readme.txt

    r3078475 r3078487  
    66Requires PHP: 5.6
    77Tested up to: 6.5
    8 Stable tag: 3.1.5
     8Stable tag: 3.1.6
    99License: GPLv2 or later
    1010License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    7979== Changelog ==
    8080
    81 = 3.1.5 =
     81= 3.1.6 =
    8282
    8383* 新增清除重複 User/Post Meta 資料的最佳化資料庫的功能,參考:  [Cleanup Duplicate Meta](https://tw.wordpress.org/plugins/cleanup-duplicate-meta/)
Note: See TracChangeset for help on using the changeset viewer.