Changeset 3168230
- Timestamp:
- 10/14/2024 07:04:01 AM (17 months ago)
- Location:
- mxp-dev-tools
- Files:
-
- 1 deleted
- 5 edited
- 8 copied
-
tags/3.2.4 (deleted)
-
tags/3.2.5 (copied) (copied from mxp-dev-tools/trunk)
-
tags/3.2.5/includes/class_plugins_list_table.php (copied) (copied from mxp-dev-tools/trunk/includes/class_plugins_list_table.php)
-
tags/3.2.5/includes/hooks-usage.php (copied) (copied from mxp-dev-tools/trunk/includes/hooks-usage.php)
-
tags/3.2.5/index.php (copied) (copied from mxp-dev-tools/trunk/index.php) (2 diffs)
-
tags/3.2.5/mxp-login-path.php (copied) (copied from mxp-dev-tools/trunk/mxp-login-path.php) (1 diff)
-
tags/3.2.5/mxp-site-manager.php (copied) (copied from mxp-dev-tools/trunk/mxp-site-manager.php) (2 diffs)
-
tags/3.2.5/mxp-snippets.php (copied) (copied from mxp-dev-tools/trunk/mxp-snippets.php) (4 diffs)
-
tags/3.2.5/readme.txt (copied) (copied from mxp-dev-tools/trunk/readme.txt) (2 diffs)
-
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) (4 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
mxp-dev-tools/tags/3.2.5/index.php
r3165131 r3168230 7 7 * Requires PHP: 5.6 8 8 * Tested up to: 6.6 9 * Stable tag: 3.2. 410 * Version: 3.2. 49 * Stable tag: 3.2.5 10 * Version: 3.2.5 11 11 * Author: Chun 12 12 * Author URI: https://www.mxp.tw/contact/ … … 39 39 use SearchReplace; 40 40 use Utility; 41 static $VERSION = '3.2. 4';41 static $VERSION = '3.2.5'; 42 42 private $themeforest_api_base_url = 'https://api.envato.com/v3'; 43 43 protected static $instance = null; -
mxp-dev-tools/tags/3.2.5/mxp-login-path.php
r3165131 r3168230 7 7 * Requires PHP: 5.6 8 8 * Tested up to: 6.6 9 * Stable tag: 3.2. 410 * Version: 3.2. 49 * Stable tag: 3.2.5 10 * Version: 3.2.5 11 11 * Author: Chun 12 12 * Author URI: https://www.mxp.tw/contact/ -
mxp-dev-tools/tags/3.2.5/mxp-site-manager.php
r3165131 r3168230 7 7 * Requires PHP: 5.6 8 8 * Tested up to: 6.6 9 * Stable tag: 3.2. 410 * Version: 3.2. 49 * Stable tag: 3.2.5 10 * Version: 3.2.5 11 11 * Author: Chun 12 12 * Author URI: https://www.mxp.tw/contact/ … … 39 39 class MDTSiteManager { 40 40 public $plugin_slug = 'mdt-site-manager'; 41 public static $VERSION = '3.2. 4';41 public static $VERSION = '3.2.5'; 42 42 43 43 public function __construct() { -
mxp-dev-tools/tags/3.2.5/mxp-snippets.php
r3165131 r3168230 7 7 * Requires PHP: 5.6 8 8 * Tested up to: 6.6 9 * Stable tag: 3.2. 410 * Version: 3.2. 49 * Stable tag: 3.2.5 10 * Version: 3.2.5 11 11 * Author: Chun 12 12 * Author URI: https://www.mxp.tw/contact/ … … 268 268 add_filter('rest_index', array($this, 'rest_response_empty_array'), 11, 1); 269 269 } 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);278 270 if (MDT_HIDE_AUTHOR_LINK) { 279 271 // 預設前端作者的連結都不顯示 … … 390 382 391 383 public function plugins_loaded_action() { 384 // 針對有管理使用者權限的角色開放封鎖功能 392 385 if (MDT_ENABLE_BLOCK_USER_FUNCTION) { 393 386 add_filter('wp_authenticate_user', array($this, 'block_user_login'), 100, 2); … … 398 391 add_action('edit_user_profile_update', array($this, 'save_user_meta_fields')); 399 392 } 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'); 400 399 } 401 400 } -
mxp-dev-tools/tags/3.2.5/readme.txt
r3165131 r3168230 6 6 Requires PHP: 5.6 7 7 Tested up to: 6.6 8 Stable tag: 3.2. 48 Stable tag: 3.2.5 9 9 License: GPLv2 or later 10 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 78 78 == Changelog == 79 79 80 = 3.2. 4=80 = 3.2.5 = 81 81 82 82 * 調整封鎖使用者權限設定的彈性 83 * 修正 Snippets 造成 WooCommerce 首頁讀取的問題 83 84 84 85 = 3.2.3 = -
mxp-dev-tools/trunk/index.php
r3165131 r3168230 7 7 * Requires PHP: 5.6 8 8 * Tested up to: 6.6 9 * Stable tag: 3.2. 410 * Version: 3.2. 49 * Stable tag: 3.2.5 10 * Version: 3.2.5 11 11 * Author: Chun 12 12 * Author URI: https://www.mxp.tw/contact/ … … 39 39 use SearchReplace; 40 40 use Utility; 41 static $VERSION = '3.2. 4';41 static $VERSION = '3.2.5'; 42 42 private $themeforest_api_base_url = 'https://api.envato.com/v3'; 43 43 protected static $instance = null; -
mxp-dev-tools/trunk/mxp-login-path.php
r3165131 r3168230 7 7 * Requires PHP: 5.6 8 8 * Tested up to: 6.6 9 * Stable tag: 3.2. 410 * Version: 3.2. 49 * Stable tag: 3.2.5 10 * Version: 3.2.5 11 11 * Author: Chun 12 12 * Author URI: https://www.mxp.tw/contact/ -
mxp-dev-tools/trunk/mxp-site-manager.php
r3165131 r3168230 7 7 * Requires PHP: 5.6 8 8 * Tested up to: 6.6 9 * Stable tag: 3.2. 410 * Version: 3.2. 49 * Stable tag: 3.2.5 10 * Version: 3.2.5 11 11 * Author: Chun 12 12 * Author URI: https://www.mxp.tw/contact/ … … 39 39 class MDTSiteManager { 40 40 public $plugin_slug = 'mdt-site-manager'; 41 public static $VERSION = '3.2. 4';41 public static $VERSION = '3.2.5'; 42 42 43 43 public function __construct() { -
mxp-dev-tools/trunk/mxp-snippets.php
r3165131 r3168230 7 7 * Requires PHP: 5.6 8 8 * Tested up to: 6.6 9 * Stable tag: 3.2. 410 * Version: 3.2. 49 * Stable tag: 3.2.5 10 * Version: 3.2.5 11 11 * Author: Chun 12 12 * Author URI: https://www.mxp.tw/contact/ … … 268 268 add_filter('rest_index', array($this, 'rest_response_empty_array'), 11, 1); 269 269 } 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);278 270 if (MDT_HIDE_AUTHOR_LINK) { 279 271 // 預設前端作者的連結都不顯示 … … 390 382 391 383 public function plugins_loaded_action() { 384 // 針對有管理使用者權限的角色開放封鎖功能 392 385 if (MDT_ENABLE_BLOCK_USER_FUNCTION) { 393 386 add_filter('wp_authenticate_user', array($this, 'block_user_login'), 100, 2); … … 398 391 add_action('edit_user_profile_update', array($this, 'save_user_meta_fields')); 399 392 } 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'); 400 399 } 401 400 } -
mxp-dev-tools/trunk/readme.txt
r3165131 r3168230 6 6 Requires PHP: 5.6 7 7 Tested up to: 6.6 8 Stable tag: 3.2. 48 Stable tag: 3.2.5 9 9 License: GPLv2 or later 10 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 78 78 == Changelog == 79 79 80 = 3.2. 4=80 = 3.2.5 = 81 81 82 82 * 調整封鎖使用者權限設定的彈性 83 * 修正 Snippets 造成 WooCommerce 首頁讀取的問題 83 84 84 85 = 3.2.3 =
Note: See TracChangeset
for help on using the changeset viewer.