Changeset 3191759
- Timestamp:
- 11/19/2024 03:14:39 AM (14 months ago)
- Location:
- mxp-dev-tools
- Files:
-
- 1 deleted
- 5 edited
- 8 copied
-
tags/3.3.2 (deleted)
-
tags/3.3.3 (copied) (copied from mxp-dev-tools/trunk)
-
tags/3.3.3/includes/class_plugins_list_table.php (copied) (copied from mxp-dev-tools/trunk/includes/class_plugins_list_table.php)
-
tags/3.3.3/includes/hooks-usage.php (copied) (copied from mxp-dev-tools/trunk/includes/hooks-usage.php)
-
tags/3.3.3/index.php (copied) (copied from mxp-dev-tools/trunk/index.php) (42 diffs)
-
tags/3.3.3/mxp-login-path.php (copied) (copied from mxp-dev-tools/trunk/mxp-login-path.php) (16 diffs)
-
tags/3.3.3/mxp-site-manager.php (copied) (copied from mxp-dev-tools/trunk/mxp-site-manager.php) (25 diffs)
-
tags/3.3.3/mxp-snippets.php (copied) (copied from mxp-dev-tools/trunk/mxp-snippets.php) (55 diffs)
-
tags/3.3.3/readme.txt (copied) (copied from mxp-dev-tools/trunk/readme.txt) (2 diffs)
-
trunk/index.php (modified) (42 diffs)
-
trunk/mxp-login-path.php (modified) (16 diffs)
-
trunk/mxp-site-manager.php (modified) (25 diffs)
-
trunk/mxp-snippets.php (modified) (55 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
mxp-dev-tools/tags/3.3.3/index.php
r3185321 r3191759 7 7 * Requires PHP: 5.6 8 8 * Tested up to: 6.7 9 * Stable tag: 3.3. 210 * Version: 3.3. 29 * Stable tag: 3.3.3 10 * Version: 3.3.3 11 11 * Author: Chun 12 12 * Author URI: https://www.mxp.tw/contact/ … … 15 15 namespace MxpDevTools; 16 16 17 if (! defined('WPINC')) {17 if (! defined('WPINC')) { 18 18 die; 19 19 } 20 20 21 21 // 分割檔案大小的數量 22 if (! defined('MDT_PACK_LARGE_SPLIT_NUM')) {22 if (! defined('MDT_PACK_LARGE_SPLIT_NUM')) { 23 23 define('MDT_PACK_LARGE_SPLIT_NUM', 200); 24 24 } 25 25 // 暫存資料夾要放 /tmp 還是上傳目錄?預設 /tmp 26 if (! defined('MDT_TMP_DIR')) {26 if (! defined('MDT_TMP_DIR')) { 27 27 define('MDT_TMP_DIR', 'TMP'); 28 28 } … … 39 39 use SearchReplace; 40 40 use Utility; 41 static $VERSION = '3.3.2';41 static $VERSION = '3.3.3'; 42 42 private $themeforest_api_base_url = 'https://api.envato.com/v3'; 43 protected static $instance = null;44 public $plugin_slug = 'mxp_wp_dev_tools';45 private $installed_plugins = null;43 protected static $instance = null; 44 public $plugin_slug = 'mxp_wp_dev_tools'; 45 private $installed_plugins = null; 46 46 private function __construct() { 47 47 $this->init(); … … 87 87 88 88 public static function get_instance() { 89 if (! isset(self::$instance) && is_super_admin()) {89 if (! isset(self::$instance) && is_super_admin()) { 90 90 self::$instance = new self; 91 91 } … … 135 135 wp_localize_script($this->plugin_slug . '-plugins-list', 'Mxp_AJAX', array( 136 136 'ajaxurl' => admin_url('admin-ajax.php'), 137 'nonce' => wp_create_nonce('mxp-ajax-nonce-for-plugin-list'),137 'nonce' => wp_create_nonce('mxp-ajax-nonce-for-plugin-list'), 138 138 )); 139 139 … … 146 146 global $paged; 147 147 return [ 148 'page' => $paged,148 'page' => $paged, 149 149 'per_page' => 100, 150 'locale' => get_user_locale(),151 'author' => 'mxp',150 'locale' => get_user_locale(), 151 'author' => 'mxp', 152 152 ]; 153 153 }); … … 166 166 wp_localize_script($this->plugin_slug . '-dashboard', 'Mxp_AJAX_dashboard', array( 167 167 'ajaxurl' => admin_url('admin-ajax.php'), 168 'nonce' => wp_create_nonce('mxp-ajax-nonce-for-recently_mod_files'),168 'nonce' => wp_create_nonce('mxp-ajax-nonce-for-recently_mod_files'), 169 169 )); 170 170 wp_enqueue_script($this->plugin_slug . '-dashboard'); 171 171 172 172 $day_from = date('Y/m/d', strtotime("-1 days")); 173 $day_to = date('Y/m/d', time());173 $day_to = date('Y/m/d', time()); 174 174 if (isset($_GET['day_from']) && $_GET['day_from'] != '') { 175 175 $day_from = sanitize_text_field($_GET['day_from']); … … 182 182 foreach ($raw_data as $type => $rows) {