Plugin Directory

Changeset 3047783


Ignore:
Timestamp:
03/08/2024 11:49:12 AM (2 years ago)
Author:
mxp
Message:

update 3.0.16

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

Legend:

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

    r3046200 r3047783  
    44 * Plugin URI: https://goo.gl/2gLq18
    55 * Description: 一介資男の常用外掛整理與常用開發功能整合外掛。
    6  * Version: 3.0.15
     6 * Version: 3.0.16
    77 * Author: Chun
    88 * Author URI: https://www.mxp.tw/contact/
     
    2626    use SearchReplace;
    2727    use Utility;
    28     static $VERSION                   = '3.0.15';
     28    static $VERSION                   = '3.0.16';
    2929    private $themeforest_api_base_url = 'https://api.envato.com/v3';
    3030    protected static $instance        = null;
  • mxp-dev-tools/tags/3.0.16/mxp-login-path.php

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

    r3046200 r3047783  
    44 * Plugin URI: https://tw.wordpress.org/plugins/mxp-dev-tools/
    55 * Description: 管理多個 WordPress 站點的工具。
    6  * Version: 3.0.15
     6 * Version: 3.0.16
    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.0.15';
     37    public static $VERSION = '3.0.16';
    3838
    3939    public function __construct() {
  • mxp-dev-tools/tags/3.0.16/mxp-snippets.php

    r3046200 r3047783  
    44 * Plugin URI: https://tw.wordpress.org/plugins/mxp-dev-tools/
    55 * Description: 整合 GitHub 中常用的程式碼片段。請注意,並非所有網站都適用全部的選項,有進階需求可以透過設定 wp-config.php 中此外掛預設常數,啟用或停用部分功能。
    6  * Version: 3.0.15
     6 * Version: 3.0.16
    77 * Author: Chun
    88 * Author URI: https://www.mxp.tw/contact/
     
    237237        if (MDT_DISABLE_REST_INDEX) {
    238238            // 關閉 wp-json 首頁顯示的 API 清單
    239             add_filter('rest_index', array($this, 'rest_response_empty_array'), 11, 2);
     239            add_filter('rest_index', array($this, 'rest_response_empty_array'), 11, 1);
    240240        }
    241241        // 沒登入的使用者都無法呼叫 wp/users 這隻 API。不建議完全封鎖掉,會導致有些後台功能運作失靈
     
    382382    }
    383383
    384     public function rest_response_empty_array($response, $request) {
     384    public function rest_response_empty_array($response) {
    385385        $new_response = new \WP_REST_Response();
    386386        // 將空資料設定給 WP_REST_Response 物件
  • mxp-dev-tools/tags/3.0.16/readme.txt

    r3046200 r3047783  
    66Requires PHP: 5.6
    77Tested up to: 6.4
    8 Stable tag: 3.0.15
     8Stable tag: 3.0.16
    99License: GPLv2 or later
    1010License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    7979== Changelog ==
    8080
    81 = 3.0.15 =
     81= 3.0.16 =
    8282
    8383* 修正 Site Manager 的資料載入問題
    8484* 修正 Snippets REST API 的權限判斷與勾點置入問題
     85* 向下相容 v4.4 版本的 REST API 勾點
    8586
    8687= 3.0.13 =
  • mxp-dev-tools/trunk/index.php

    r3046200 r3047783  
    44 * Plugin URI: https://goo.gl/2gLq18
    55 * Description: 一介資男の常用外掛整理與常用開發功能整合外掛。
    6  * Version: 3.0.15
     6 * Version: 3.0.16
    77 * Author: Chun
    88 * Author URI: https://www.mxp.tw/contact/
     
    2626    use SearchReplace;
    2727    use Utility;
    28     static $VERSION                   = '3.0.15';
     28    static $VERSION                   = '3.0.16';
    2929    private $themeforest_api_base_url = 'https://api.envato.com/v3';
    3030    protected static $instance        = null;
  • mxp-dev-tools/trunk/mxp-login-path.php

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

    r3046200 r3047783  
    44 * Plugin URI: https://tw.wordpress.org/plugins/mxp-dev-tools/
    55 * Description: 管理多個 WordPress 站點的工具。
    6  * Version: 3.0.15
     6 * Version: 3.0.16
    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.0.15';
     37    public static $VERSION = '3.0.16';
    3838
    3939    public function __construct() {
  • mxp-dev-tools/trunk/mxp-snippets.php

    r3046200 r3047783  
    44 * Plugin URI: https://tw.wordpress.org/plugins/mxp-dev-tools/
    55 * Description: 整合 GitHub 中常用的程式碼片段。請注意,並非所有網站都適用全部的選項,有進階需求可以透過設定 wp-config.php 中此外掛預設常數,啟用或停用部分功能。
    6  * Version: 3.0.15
     6 * Version: 3.0.16
    77 * Author: Chun
    88 * Author URI: https://www.mxp.tw/contact/
     
    237237        if (MDT_DISABLE_REST_INDEX) {
    238238            // 關閉 wp-json 首頁顯示的 API 清單
    239             add_filter('rest_index', array($this, 'rest_response_empty_array'), 11, 2);
     239            add_filter('rest_index', array($this, 'rest_response_empty_array'), 11, 1);
    240240        }
    241241        // 沒登入的使用者都無法呼叫 wp/users 這隻 API。不建議完全封鎖掉,會導致有些後台功能運作失靈
     
    382382    }
    383383
    384     public function rest_response_empty_array($response, $request) {
     384    public function rest_response_empty_array($response) {
    385385        $new_response = new \WP_REST_Response();
    386386        // 將空資料設定給 WP_REST_Response 物件
  • mxp-dev-tools/trunk/readme.txt

    r3046200 r3047783  
    66Requires PHP: 5.6
    77Tested up to: 6.4
    8 Stable tag: 3.0.15
     8Stable tag: 3.0.16
    99License: GPLv2 or later
    1010License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    7979== Changelog ==
    8080
    81 = 3.0.15 =
     81= 3.0.16 =
    8282
    8383* 修正 Site Manager 的資料載入問題
    8484* 修正 Snippets REST API 的權限判斷與勾點置入問題
     85* 向下相容 v4.4 版本的 REST API 勾點
    8586
    8687= 3.0.13 =
Note: See TracChangeset for help on using the changeset viewer.