Changeset 3059186
- Timestamp:
- 03/26/2024 03:38:10 PM (2 years ago)
- Location:
- mxp-dev-tools
- Files:
-
- 1 deleted
- 7 edited
- 18 copied
-
tags/3.0.17 (deleted)
-
tags/3.0.18 (copied) (copied from mxp-dev-tools/trunk)
-
tags/3.0.18/includes/assets/js/dashboard/app.js (copied) (copied from mxp-dev-tools/trunk/includes/assets/js/dashboard/app.js)
-
tags/3.0.18/includes/assets/js/db-optimize/app.js (copied) (copied from mxp-dev-tools/trunk/includes/assets/js/db-optimize/app.js) (1 diff)
-
tags/3.0.18/includes/assets/js/plugins-list/app.js (copied) (copied from mxp-dev-tools/trunk/includes/assets/js/plugins-list/app.js)
-
tags/3.0.18/includes/assets/js/search-plugins/app.js (copied) (copied from mxp-dev-tools/trunk/includes/assets/js/search-plugins/app.js)
-
tags/3.0.18/includes/assets/js/site-manager (copied) (copied from mxp-dev-tools/trunk/includes/assets/js/site-manager)
-
tags/3.0.18/includes/assets/js/site-manager/app.js (copied) (copied from mxp-dev-tools/trunk/includes/assets/js/site-manager/app.js)
-
tags/3.0.18/includes/class_plugins_list_table.php (copied) (copied from mxp-dev-tools/trunk/includes/class_plugins_list_table.php)
-
tags/3.0.18/includes/db-optimize.php (copied) (copied from mxp-dev-tools/trunk/includes/db-optimize.php) (1 diff)
-
tags/3.0.18/includes/hooks-usage.php (copied) (copied from mxp-dev-tools/trunk/includes/hooks-usage.php)
-
tags/3.0.18/includes/plugins-list.php (copied) (copied from mxp-dev-tools/trunk/includes/plugins-list.php)
-
tags/3.0.18/includes/utility.php (copied) (copied from mxp-dev-tools/trunk/includes/utility.php)
-
tags/3.0.18/index.php (copied) (copied from mxp-dev-tools/trunk/index.php) (2 diffs)
-
tags/3.0.18/mxp-login-path.php (copied) (copied from mxp-dev-tools/trunk/mxp-login-path.php) (1 diff)
-
tags/3.0.18/mxp-site-manager.php (copied) (copied from mxp-dev-tools/trunk/mxp-site-manager.php) (2 diffs)
-
tags/3.0.18/mxp-snippets.php (copied) (copied from mxp-dev-tools/trunk/mxp-snippets.php) (3 diffs)
-
tags/3.0.18/readme.txt (copied) (copied from mxp-dev-tools/trunk/readme.txt) (2 diffs)
-
tags/3.0.18/uninstall.php (copied) (copied from mxp-dev-tools/trunk/uninstall.php)
-
trunk/includes/assets/js/db-optimize/app.js (modified) (1 diff)
-
trunk/includes/db-optimize.php (modified) (1 diff)
-
trunk/index.php (modified) (2 diffs)
-
trunk/mxp-login-path.php (modified) (1 diff)
-
trunk/mxp-site-manager.php (modified) (2 diffs)
-
trunk/mxp-snippets.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
mxp-dev-tools/tags/3.0.18/includes/assets/js/db-optimize/app.js
r3006169 r3059186 334 334 url: MXP.ajaxurl, 335 335 cache: false, 336 timeout: 3000 ,336 timeout: 30000, 337 337 error: function(res) { 338 338 console.log('Error', res); -
mxp-dev-tools/tags/3.0.18/includes/db-optimize.php
r3006169 r3059186 428 428 break; 429 429 case 'done': 430 if (connection_aborted()) { 431 wp_send_json(array('success' => false, 'data' => array(), 'msg' => '請求超時,重新確認中')); 432 exit; 433 } 430 434 //清除設定暫存 431 435 $key = $option_prefix . '%'; -
mxp-dev-tools/tags/3.0.18/index.php
r3051403 r3059186 4 4 * Plugin URI: https://goo.gl/2gLq18 5 5 * Description: 一介資男の常用外掛整理與常用開發功能整合外掛。 6 * Version: 3.0.1 76 * Version: 3.0.18 7 7 * Author: Chun 8 8 * Author URI: https://www.mxp.tw/contact/ … … 26 26 use SearchReplace; 27 27 use Utility; 28 static $VERSION = '3.0.1 7';28 static $VERSION = '3.0.18'; 29 29 private $themeforest_api_base_url = 'https://api.envato.com/v3'; 30 30 protected static $instance = null; -
mxp-dev-tools/tags/3.0.18/mxp-login-path.php
r3051403 r3059186 4 4 * Plugin URI: https://tw.wordpress.org/plugins/mxp-dev-tools/ 5 5 * Description: 隱藏後台登入位置工具。啟用即更改預設登入網址為 /admin-staff/ 6 * Version: 3.0.1 76 * Version: 3.0.18 7 7 * Author: Chun 8 8 * Author URI: https://www.mxp.tw/contact/ -
mxp-dev-tools/tags/3.0.18/mxp-site-manager.php
r3051403 r3059186 4 4 * Plugin URI: https://tw.wordpress.org/plugins/mxp-dev-tools/ 5 5 * Description: 管理多個 WordPress 站點的工具。 6 * Version: 3.0.1 76 * Version: 3.0.18 7 7 * Author: Chun 8 8 * Author URI: https://www.mxp.tw/contact/ … … 35 35 class MDTSiteManager { 36 36 public $plugin_slug = 'mdt-site-manager'; 37 public static $VERSION = '3.0.1 7';37 public static $VERSION = '3.0.18'; 38 38 39 39 public function __construct() { -
mxp-dev-tools/tags/3.0.18/mxp-snippets.php
r3051403 r3059186 4 4 * Plugin URI: https://tw.wordpress.org/plugins/mxp-dev-tools/ 5 5 * Description: 整合 GitHub 中常用的程式碼片段。請注意,並非所有網站都適用全部的選項,有進階需求可以透過設定 wp-config.php 中此外掛預設常數,啟用或停用部分功能。 6 * Version: 3.0.1 76 * Version: 3.0.18 7 7 * Author: Chun 8 8 * Author URI: https://www.mxp.tw/contact/ … … 152 152 if (!defined("MDT_ENABLE_BLOCK_USER_FUNCTION")) { 153 153 define('MDT_ENABLE_BLOCK_USER_FUNCTION', true); 154 } 155 // 預設開啟所有連線請求 156 if (!defined("MDT_BLOCK_ALL_NETWORK_FUNCTION")) { 157 define('MDT_BLOCK_ALL_NETWORK_FUNCTION', false); 154 158 } 155 159 class MDTSnippets { … … 978 982 // 內對外請求管制方法 979 983 public function block_external_request($preempt, $parsed_args, $url) { 980 $block_urls = apply_filters('mxp_dev_block_urls', array()); 981 $block_urls = array_map('strtolower', $block_urls); 982 $allow_urls = apply_filters('mxp_dev_allow_urls', array( 983 "api.wordpress.org", 984 "downloads.wordpress.org", 985 )); 986 $allow_urls = array_map('strtolower', $allow_urls); 984 $domains = array(); 985 if (MDT_BLOCK_ALL_NETWORK_FUNCTION) { 986 $domains[0] = '*'; 987 } 988 $block_urls = apply_filters('mxp_dev_block_urls', $domains); 989 $block_urls = array_map('strtolower', $block_urls); 987 990 $localhost = strtolower(parse_url(get_home_url(), PHP_URL_HOST)); 991 $allow_urls = array(); 988 992 $allow_urls[] = $localhost; 989 993 $allow_urls[] = 'localhost'; 990 994 $allow_urls[] = '127.0.0.1'; 995 $allow_urls[] = 'api.wordpress.org'; 996 $allow_urls[] = 'downloads.wordpress.org'; 997 $allow_urls = apply_filters('mxp_dev_allow_urls', $allow_urls); 998 $allow_urls = array_map('strtolower', $allow_urls); 991 999 $request_domain = strtolower(parse_url($url, PHP_URL_HOST)); 992 1000 if (count($block_urls) == 1 && $block_urls[0] == '*') { -
mxp-dev-tools/tags/3.0.18/readme.txt
r3051403 r3059186 6 6 Requires PHP: 5.6 7 7 Tested up to: 6.4 8 Stable tag: 3.0.1 78 Stable tag: 3.0.18 9 9 License: GPLv2 or later 10 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 78 78 79 79 == Changelog == 80 81 = 3.0.18 = 82 83 * Snippets 新增與調整外網請求的封鎖功能 84 * 調整打包資料庫請求的功能,避免超時無法存取 80 85 81 86 = 3.0.17 = -
mxp-dev-tools/trunk/includes/assets/js/db-optimize/app.js
r3006169 r3059186 334 334 url: MXP.ajaxurl, 335 335 cache: false, 336 timeout: 3000 ,336 timeout: 30000, 337 337 error: function(res) { 338 338 console.log('Error', res); -
mxp-dev-tools/trunk/includes/db-optimize.php
r3006169 r3059186 428 428 break; 429 429 case 'done': 430 if (connection_aborted()) { 431 wp_send_json(array('success' => false, 'data' => array(), 'msg' => '請求超時,重新確認中')); 432 exit; 433 } 430 434 //清除設定暫存 431 435 $key = $option_prefix . '%'; -
mxp-dev-tools/trunk/index.php
r3051403 r3059186 4 4 * Plugin URI: https://goo.gl/2gLq18 5 5 * Description: 一介資男の常用外掛整理與常用開發功能整合外掛。 6 * Version: 3.0.1 76 * Version: 3.0.18 7 7 * Author: Chun 8 8 * Author URI: https://www.mxp.tw/contact/ … … 26 26 use SearchReplace; 27 27 use Utility; 28 static $VERSION = '3.0.1 7';28 static $VERSION = '3.0.18'; 29 29 private $themeforest_api_base_url = 'https://api.envato.com/v3'; 30 30 protected static $instance = null; -
mxp-dev-tools/trunk/mxp-login-path.php
r3051403 r3059186 4 4 * Plugin URI: https://tw.wordpress.org/plugins/mxp-dev-tools/ 5 5 * Description: 隱藏後台登入位置工具。啟用即更改預設登入網址為 /admin-staff/ 6 * Version: 3.0.1 76 * Version: 3.0.18 7 7 * Author: Chun 8 8 * Author URI: https://www.mxp.tw/contact/ -
mxp-dev-tools/trunk/mxp-site-manager.php
r3051403 r3059186 4 4 * Plugin URI: https://tw.wordpress.org/plugins/mxp-dev-tools/ 5 5 * Description: 管理多個 WordPress 站點的工具。 6 * Version: 3.0.1 76 * Version: 3.0.18 7 7 * Author: Chun 8 8 * Author URI: https://www.mxp.tw/contact/ … … 35 35 class MDTSiteManager { 36 36 public $plugin_slug = 'mdt-site-manager'; 37 public static $VERSION = '3.0.1 7';37 public static $VERSION = '3.0.18'; 38 38 39 39 public function __construct() { -
mxp-dev-tools/trunk/mxp-snippets.php
r3051403 r3059186 4 4 * Plugin URI: https://tw.wordpress.org/plugins/mxp-dev-tools/ 5 5 * Description: 整合 GitHub 中常用的程式碼片段。請注意,並非所有網站都適用全部的選項,有進階需求可以透過設定 wp-config.php 中此外掛預設常數,啟用或停用部分功能。 6 * Version: 3.0.1 76 * Version: 3.0.18 7 7 * Author: Chun 8 8 * Author URI: https://www.mxp.tw/contact/ … … 152 152 if (!defined("MDT_ENABLE_BLOCK_USER_FUNCTION")) { 153 153 define('MDT_ENABLE_BLOCK_USER_FUNCTION', true); 154 } 155 // 預設開啟所有連線請求 156 if (!defined("MDT_BLOCK_ALL_NETWORK_FUNCTION")) { 157 define('MDT_BLOCK_ALL_NETWORK_FUNCTION', false); 154 158 } 155 159 class MDTSnippets { … … 978 982 // 內對外請求管制方法 979 983 public function block_external_request($preempt, $parsed_args, $url) { 980 $block_urls = apply_filters('mxp_dev_block_urls', array()); 981 $block_urls = array_map('strtolower', $block_urls); 982 $allow_urls = apply_filters('mxp_dev_allow_urls', array( 983 "api.wordpress.org", 984 "downloads.wordpress.org", 985 )); 986 $allow_urls = array_map('strtolower', $allow_urls); 984 $domains = array(); 985 if (MDT_BLOCK_ALL_NETWORK_FUNCTION) { 986 $domains[0] = '*'; 987 } 988 $block_urls = apply_filters('mxp_dev_block_urls', $domains); 989 $block_urls = array_map('strtolower', $block_urls); 987 990 $localhost = strtolower(parse_url(get_home_url(), PHP_URL_HOST)); 991 $allow_urls = array(); 988 992 $allow_urls[] = $localhost; 989 993 $allow_urls[] = 'localhost'; 990 994 $allow_urls[] = '127.0.0.1'; 995 $allow_urls[] = 'api.wordpress.org'; 996 $allow_urls[] = 'downloads.wordpress.org'; 997 $allow_urls = apply_filters('mxp_dev_allow_urls', $allow_urls); 998 $allow_urls = array_map('strtolower', $allow_urls); 991 999 $request_domain = strtolower(parse_url($url, PHP_URL_HOST)); 992 1000 if (count($block_urls) == 1 && $block_urls[0] == '*') { -
mxp-dev-tools/trunk/readme.txt
r3051403 r3059186 6 6 Requires PHP: 5.6 7 7 Tested up to: 6.4 8 Stable tag: 3.0.1 78 Stable tag: 3.0.18 9 9 License: GPLv2 or later 10 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 78 78 79 79 == Changelog == 80 81 = 3.0.18 = 82 83 * Snippets 新增與調整外網請求的封鎖功能 84 * 調整打包資料庫請求的功能,避免超時無法存取 80 85 81 86 = 3.0.17 =
Note: See TracChangeset
for help on using the changeset viewer.