🔒 EXCLUSIVE: Changeset/ - High Quality

Changeset 3191759


Ignore:
Timestamp:
11/19/2024 03:14:39 AM (14 months ago)
Author:
mxp
Message:

update 3.3.3

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

Legend:

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

    r3185321 r3191759  
    77 * Requires PHP: 5.6
    88 * Tested up to: 6.7
    9  * Stable tag: 3.3.2
    10  * Version: 3.3.2
     9 * Stable tag: 3.3.3
     10 * Version: 3.3.3
    1111 * Author: Chun
    1212 * Author URI: https://www.mxp.tw/contact/
     
    1515namespace MxpDevTools;
    1616
    17 if (!defined('WPINC')) {
     17if (! defined('WPINC')) {
    1818    die;
    1919}
    2020
    2121// 分割檔案大小的數量
    22 if (!defined('MDT_PACK_LARGE_SPLIT_NUM')) {
     22if (! defined('MDT_PACK_LARGE_SPLIT_NUM')) {
    2323    define('MDT_PACK_LARGE_SPLIT_NUM', 200);
    2424}
    2525// 暫存資料夾要放 /tmp 還是上傳目錄?預設 /tmp
    26 if (!defined('MDT_TMP_DIR')) {
     26if (! defined('MDT_TMP_DIR')) {
    2727    define('MDT_TMP_DIR', 'TMP');
    2828}
     
    3939    use SearchReplace;
    4040    use Utility;
    41     static $VERSION = '3.3.2';
     41    static $VERSION                   = '3.3.3';
    4242    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;
    4646    private function __construct() {
    4747        $this->init();
     
    8787
    8888    public static function get_instance() {
    89         if (!isset(self::$instance) && is_super_admin()) {
     89        if (! isset(self::$instance) && is_super_admin()) {
    9090            self::$instance = new self;
    9191        }
     
    135135            wp_localize_script($this->plugin_slug . '-plugins-list', 'Mxp_AJAX', array(
    136136                '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'),
    138138            ));
    139139
     
    146146            global $paged;
    147147            return [
    148                 'page' => $paged,
     148                'page'     => $paged,
    149149                'per_page' => 100,
    150                 'locale' => get_user_locale(),
    151                 'author' => 'mxp',
     150                'locale'   => get_user_locale(),
     151                'author'   => 'mxp',
    152152            ];
    153153        });
     
    166166            wp_localize_script($this->plugin_slug . '-dashboard', 'Mxp_AJAX_dashboard', array(
    167167                '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'),
    169169            ));
    170170            wp_enqueue_script($this->plugin_slug . '-dashboard');
    171171
    172172            $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());
    174174            if (isset($_GET['day_from']) && $_GET['day_from'] != '') {
    175175                $day_from = sanitize_text_field($_GET['day_from']);
     
    182182            foreach ($raw_data as $type => $rows) {