Changeset 3389508
- Timestamp:
- 11/04/2025 09:27:08 AM (4 months ago)
- Location:
- mxp-dev-tools
- Files:
-
- 10 edited
- 1 copied
-
tags/3.3.9 (copied) (copied from mxp-dev-tools/trunk)
-
tags/3.3.9/index.php (modified) (2 diffs)
-
tags/3.3.9/mxp-login-path.php (modified) (1 diff)
-
tags/3.3.9/mxp-site-manager.php (modified) (2 diffs)
-
tags/3.3.9/mxp-snippets.php (modified) (3 diffs)
-
tags/3.3.9/readme.txt (modified) (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) (3 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
mxp-dev-tools/tags/3.3.9/index.php
r3379577 r3389508 7 7 * Requires PHP: 5.6 8 8 * Tested up to: 6.8 9 * Stable tag: 3.3. 810 * Version: 3.3. 89 * Stable tag: 3.3.9 10 * Version: 3.3.9 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.3. 8';41 static $VERSION = '3.3.9'; 42 42 private $themeforest_api_base_url = 'https://api.envato.com/v3'; 43 43 protected static $instance = null; -
mxp-dev-tools/tags/3.3.9/mxp-login-path.php
r3379577 r3389508 7 7 * Requires PHP: 5.6 8 8 * Tested up to: 6.8 9 * Stable tag: 3.3. 810 * Version: 3.3. 89 * Stable tag: 3.3.9 10 * Version: 3.3.9 11 11 * Author: Chun 12 12 * Author URI: https://www.mxp.tw/contact/ -
mxp-dev-tools/tags/3.3.9/mxp-site-manager.php
r3379577 r3389508 7 7 * Requires PHP: 5.6 8 8 * Tested up to: 6.8 9 * Stable tag: 3.3. 810 * Version: 3.3. 89 * Stable tag: 3.3.9 10 * Version: 3.3.9 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.3. 8';41 public static $VERSION = '3.3.9'; 42 42 43 43 public function __construct() { -
mxp-dev-tools/tags/3.3.9/mxp-snippets.php
r3379577 r3389508 7 7 * Requires PHP: 5.6 8 8 * Tested up to: 6.8 9 * Stable tag: 3.3. 810 * Version: 3.3. 89 * Stable tag: 3.3.9 10 * Version: 3.3.9 11 11 * Author: Chun 12 12 * Author URI: https://www.mxp.tw/contact/ … … 1162 1162 // 限制上傳大小以及轉正JPG影像(如果有EXIF資訊的話)https://www.mxp.tw/9318/ 1163 1163 public function image_size_and_image_orientation($file) { 1164 $limit = MDT_IMAGE_SIZE_LIMIT; // 500kb 上限 1164 // 預設 500kb 上限 1165 $limit = apply_filters('mxp_dev_image_size_limit', MDT_IMAGE_SIZE_LIMIT); 1165 1166 $size = $file['size'] / 1024; 1166 1167 if (!version_compare(get_bloginfo('version'), '5.3', '>=')) { … … 1382 1383 return min($u_bytes, $p_bytes); // 跟進伺服器最大限制 1383 1384 } 1384 // 其餘限制固定上傳大小 1385 return MDT_UPLOAD_FILE_SIZE_LIMIT;1385 // 其餘限制固定上傳大小,預設 1MB 1386 return apply_filters('mxp_dev_upload_file_size_limit', MDT_UPLOAD_FILE_SIZE_LIMIT); 1386 1387 } 1387 1388 -
mxp-dev-tools/tags/3.3.9/readme.txt
r3379577 r3389508 6 6 Requires PHP: 5.6 7 7 Tested up to: 6.8 8 Stable tag: 3.3. 88 Stable tag: 3.3.9 9 9 License: GPLv2 or later 10 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 77 77 78 78 == Changelog == 79 80 = 3.3.9 = 81 82 * 新增 Hook: mxp_dev_upload_file_size_limit 讓設定上傳檔案大小更彈性運用 83 * 新增 Hook: mxp_dev_image_size_limit 讓設定上傳圖片檔案大小更彈性運用 79 84 80 85 = 3.3.8 = -
mxp-dev-tools/trunk/index.php
r3379577 r3389508 7 7 * Requires PHP: 5.6 8 8 * Tested up to: 6.8 9 * Stable tag: 3.3. 810 * Version: 3.3. 89 * Stable tag: 3.3.9 10 * Version: 3.3.9 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.3. 8';41 static $VERSION = '3.3.9'; 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
r3379577 r3389508 7 7 * Requires PHP: 5.6 8 8 * Tested up to: 6.8 9 * Stable tag: 3.3. 810 * Version: 3.3. 89 * Stable tag: 3.3.9 10 * Version: 3.3.9 11 11 * Author: Chun 12 12 * Author URI: https://www.mxp.tw/contact/ -
mxp-dev-tools/trunk/mxp-site-manager.php
r3379577 r3389508 7 7 * Requires PHP: 5.6 8 8 * Tested up to: 6.8 9 * Stable tag: 3.3. 810 * Version: 3.3. 89 * Stable tag: 3.3.9 10 * Version: 3.3.9 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.3. 8';41 public static $VERSION = '3.3.9'; 42 42 43 43 public function __construct() { -
mxp-dev-tools/trunk/mxp-snippets.php
r3379577 r3389508 7 7 * Requires PHP: 5.6 8 8 * Tested up to: 6.8 9 * Stable tag: 3.3. 810 * Version: 3.3. 89 * Stable tag: 3.3.9 10 * Version: 3.3.9 11 11 * Author: Chun 12 12 * Author URI: https://www.mxp.tw/contact/ … … 1162 1162 // 限制上傳大小以及轉正JPG影像(如果有EXIF資訊的話)https://www.mxp.tw/9318/ 1163 1163 public function image_size_and_image_orientation($file) { 1164 $limit = MDT_IMAGE_SIZE_LIMIT; // 500kb 上限 1164 // 預設 500kb 上限 1165 $limit = apply_filters('mxp_dev_image_size_limit', MDT_IMAGE_SIZE_LIMIT); 1165 1166 $size = $file['size'] / 1024; 1166 1167 if (!version_compare(get_bloginfo('version'), '5.3', '>=')) { … … 1382 1383 return min($u_bytes, $p_bytes); // 跟進伺服器最大限制 1383 1384 } 1384 // 其餘限制固定上傳大小 1385 return MDT_UPLOAD_FILE_SIZE_LIMIT;1385 // 其餘限制固定上傳大小,預設 1MB 1386 return apply_filters('mxp_dev_upload_file_size_limit', MDT_UPLOAD_FILE_SIZE_LIMIT); 1386 1387 } 1387 1388 -
mxp-dev-tools/trunk/readme.txt
r3379577 r3389508 6 6 Requires PHP: 5.6 7 7 Tested up to: 6.8 8 Stable tag: 3.3. 88 Stable tag: 3.3.9 9 9 License: GPLv2 or later 10 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 77 77 78 78 == Changelog == 79 80 = 3.3.9 = 81 82 * 新增 Hook: mxp_dev_upload_file_size_limit 讓設定上傳檔案大小更彈性運用 83 * 新增 Hook: mxp_dev_image_size_limit 讓設定上傳圖片檔案大小更彈性運用 79 84 80 85 = 3.3.8 =
Note: See TracChangeset
for help on using the changeset viewer.