Plugin Directory

Changeset 3168230


Ignore:
Timestamp:
10/14/2024 07:04:01 AM (17 months ago)
Author:
mxp
Message:

update 3.2.5

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

Legend:

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

    r3165131 r3168230  
    77 * Requires PHP: 5.6
    88 * Tested up to: 6.6
    9  * Stable tag: 3.2.4
    10  * Version: 3.2.4
     9 * Stable tag: 3.2.5
     10 * Version: 3.2.5
    1111 * Author: Chun
    1212 * Author URI: https://www.mxp.tw/contact/
     
    3939    use SearchReplace;
    4040    use Utility;
    41     static $VERSION = '3.2.4';
     41    static $VERSION = '3.2.5';
    4242    private $themeforest_api_base_url = 'https://api.envato.com/v3';
    4343    protected static $instance = null;
  • mxp-dev-tools/tags/3.2.5/mxp-login-path.php

    r3165131 r3168230  
    77 * Requires PHP: 5.6
    88 * Tested up to: 6.6
    9  * Stable tag: 3.2.4
    10  * Version: 3.2.4
     9 * Stable tag: 3.2.5
     10 * Version: 3.2.5
    1111 * Author: Chun
    1212 * Author URI: https://www.mxp.tw/contact/
  • mxp-dev-tools/tags/3.2.5/mxp-site-manager.php

    r3165131 r3168230  
    77 * Requires PHP: 5.6
    88 * Tested up to: 6.6
    9  * Stable tag: 3.2.4
    10  * Version: 3.2.4
     9 * Stable tag: 3.2.5
     10 * Version: 3.2.5
    1111 * Author: Chun
    1212 * Author URI: https://www.mxp.tw/contact/
     
    3939class MDTSiteManager {
    4040    public $plugin_slug = 'mdt-site-manager';
    41     public static $VERSION = '3.2.4';
     41    public static $VERSION = '3.2.5';
    4242
    4343    public function __construct() {
  • mxp-dev-tools/tags/3.2.5/mxp-snippets.php

    r3165131 r3168230  
    77 * Requires PHP: 5.6
    88 * Tested up to: 6.6
    9  * Stable tag: 3.2.4
    10  * Version: 3.2.4
     9 * Stable tag: 3.2.5
     10 * Version: 3.2.5
    1111 * Author: Chun
    1212 * Author URI: https://www.mxp.tw/contact/
     
    268268            add_filter('rest_index', array($this, 'rest_response_empty_array'), 11, 1);
    269269        }
    270         // 沒登入的使用者都無法呼叫 wp/users 這隻 API。不建議完全封鎖掉,會導致有些後台功能運作失靈
    271         //if (function_exists('get_current_user_id') && get_current_user_id()==0 && MDT_DISABLE_NO_AUTH_ACCESS_REST_USER) {
    272         // 要影響 Query 結果的話這邊不能傳入空值,要改寫,但下方勾點還可以處理,先放著
    273         // add_filter('rest_user_query', '__return_empty_array');
    274         add_filter('rest_prepare_user', '__return_empty_array');
    275         //}
    276 //$cookieValue = \SECURE_AUTH_COOKIE;
    277 //error_log($cookieValue);
    278270        if (MDT_HIDE_AUTHOR_LINK) {
    279271            // 預設前端作者的連結都不顯示
     
    390382
    391383    public function plugins_loaded_action() {
     384        // 針對有管理使用者權限的角色開放封鎖功能
    392385        if (MDT_ENABLE_BLOCK_USER_FUNCTION) {
    393386            add_filter('wp_authenticate_user', array($this, 'block_user_login'), 100, 2);
     
    398391                add_action('edit_user_profile_update', array($this, 'save_user_meta_fields'));
    399392            }
     393        }
     394        // 沒登入的使用者都無法呼叫 wp/users 這隻 API。不建議完全封鎖掉,會導致有些後台功能運作失靈
     395        if (function_exists('get_current_user_id') && get_current_user_id() == 0 && MDT_DISABLE_NO_AUTH_ACCESS_REST_USER) {
     396            // 要影響 Query 結果的話這邊不能傳入空值,要改寫,但下方勾點還可以處理,先放著
     397            // add_filter('rest_user_query', '__return_empty_array');
     398            add_filter('rest_prepare_user', '__return_empty_array');
    400399        }
    401400    }
  • mxp-dev-tools/tags/3.2.5/readme.txt

    r3165131 r3168230  
    66Requires PHP: 5.6
    77Tested up to: 6.6
    8 Stable tag: 3.2.4
     8Stable tag: 3.2.5
    99License: GPLv2 or later
    1010License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    7878== Changelog ==
    7979
    80 = 3.2.4 =
     80= 3.2.5 =
    8181
    8282* 調整封鎖使用者權限設定的彈性
     83* 修正 Snippets 造成 WooCommerce 首頁讀取的問題
    8384
    8485= 3.2.3 =
  • mxp-dev-tools/trunk/index.php

    r3165131 r3168230  
    77 * Requires PHP: 5.6
    88 * Tested up to: 6.6
    9  * Stable tag: 3.2.4
    10  * Version: 3.2.4
     9 * Stable tag: 3.2.5
     10 * Version: 3.2.5
    1111 * Author: Chun
    1212 * Author URI: https://www.mxp.tw/contact/
     
    3939    use SearchReplace;
    4040    use Utility;
    41     static $VERSION = '3.2.4';
     41    static $VERSION = '3.2.5';
    4242    private $themeforest_api_base_url = 'https://api.envato.com/v3';
    4343    protected static $instance = null;
  • mxp-dev-tools/trunk/mxp-login-path.php

    r3165131 r3168230  
    77 * Requires PHP: 5.6
    88 * Tested up to: 6.6
    9  * Stable tag: 3.2.4
    10  * Version: 3.2.4
     9 * Stable tag: 3.2.5
     10 * Version: 3.2.5
    1111 * Author: Chun
    1212 * Author URI: https://www.mxp.tw/contact/
  • mxp-dev-tools/trunk/mxp-site-manager.php

    r3165131 r3168230  
    77 * Requires PHP: 5.6
    88 * Tested up to: 6.6
    9  * Stable tag: 3.2.4
    10  * Version: 3.2.4
     9 * Stable tag: 3.2.5
     10 * Version: 3.2.5
    1111 * Author: Chun
    1212 * Author URI: https://www.mxp.tw/contact/
     
    3939class MDTSiteManager {
    4040    public $plugin_slug = 'mdt-site-manager';
    41     public static $VERSION = '3.2.4';
     41    public static $VERSION = '3.2.5';
    4242
    4343    public function __construct() {
  • mxp-dev-tools/trunk/mxp-snippets.php

    r3165131 r3168230  
    77 * Requires PHP: 5.6
    88 * Tested up to: 6.6
    9  * Stable tag: 3.2.4
    10  * Version: 3.2.4
     9 * Stable tag: 3.2.5
     10 * Version: 3.2.5
    1111 * Author: Chun
    1212 * Author URI: https://www.mxp.tw/contact/
     
    268268            add_filter('rest_index', array($this, 'rest_response_empty_array'), 11, 1);
    269269        }
    270         // 沒登入的使用者都無法呼叫 wp/users 這隻 API。不建議完全封鎖掉,會導致有些後台功能運作失靈
    271         //if (function_exists('get_current_user_id') && get_current_user_id()==0 && MDT_DISABLE_NO_AUTH_ACCESS_REST_USER) {
    272         // 要影響 Query 結果的話這邊不能傳入空值,要改寫,但下方勾點還可以處理,先放著
    273         // add_filter('rest_user_query', '__return_empty_array');
    274         add_filter('rest_prepare_user', '__return_empty_array');
    275         //}
    276 //$cookieValue = \SECURE_AUTH_COOKIE;
    277 //error_log($cookieValue);
    278270        if (MDT_HIDE_AUTHOR_LINK) {
    279271            // 預設前端作者的連結都不顯示
     
    390382
    391383    public function plugins_loaded_action() {
     384        // 針對有管理使用者權限的角色開放封鎖功能
    392385        if (MDT_ENABLE_BLOCK_USER_FUNCTION) {
    393386            add_filter('wp_authenticate_user', array($this, 'block_user_login'), 100, 2);
     
    398391                add_action('edit_user_profile_update', array($this, 'save_user_meta_fields'));
    399392            }
     393        }
     394        // 沒登入的使用者都無法呼叫 wp/users 這隻 API。不建議完全封鎖掉,會導致有些後台功能運作失靈
     395        if (function_exists('get_current_user_id') && get_current_user_id() == 0 && MDT_DISABLE_NO_AUTH_ACCESS_REST_USER) {
     396            // 要影響 Query 結果的話這邊不能傳入空值,要改寫,但下方勾點還可以處理,先放著
     397            // add_filter('rest_user_query', '__return_empty_array');
     398            add_filter('rest_prepare_user', '__return_empty_array');
    400399        }
    401400    }
  • mxp-dev-tools/trunk/readme.txt

    r3165131 r3168230  
    66Requires PHP: 5.6
    77Tested up to: 6.6
    8 Stable tag: 3.2.4
     8Stable tag: 3.2.5
    99License: GPLv2 or later
    1010License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    7878== Changelog ==
    7979
    80 = 3.2.4 =
     80= 3.2.5 =
    8181
    8282* 調整封鎖使用者權限設定的彈性
     83* 修正 Snippets 造成 WooCommerce 首頁讀取的問題
    8384
    8485= 3.2.3 =
Note: See TracChangeset for help on using the changeset viewer.