Plugin Directory

Changeset 3389508


Ignore:
Timestamp:
11/04/2025 09:27:08 AM (4 months ago)
Author:
mxp
Message:

update 3.3.9 add support filters

Location:
mxp-dev-tools
Files:
10 edited
1 copied

Legend:

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

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

    r3379577 r3389508  
    77 * Requires PHP: 5.6
    88 * Tested up to: 6.8
    9  * Stable tag: 3.3.8
    10  * Version: 3.3.8
     9 * Stable tag: 3.3.9
     10 * Version: 3.3.9
    1111 * Author: Chun
    1212 * Author URI: https://www.mxp.tw/contact/
  • mxp-dev-tools/tags/3.3.9/mxp-site-manager.php

    r3379577 r3389508  
    77 * Requires PHP: 5.6
    88 * Tested up to: 6.8
    9  * Stable tag: 3.3.8
    10  * Version: 3.3.8
     9 * Stable tag: 3.3.9
     10 * Version: 3.3.9
    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.3.8';
     41    public static $VERSION = '3.3.9';
    4242
    4343    public function __construct() {
  • mxp-dev-tools/tags/3.3.9/mxp-snippets.php

    r3379577 r3389508  
    77 * Requires PHP: 5.6
    88 * Tested up to: 6.8
    9  * Stable tag: 3.3.8
    10  * Version: 3.3.8
     9 * Stable tag: 3.3.9
     10 * Version: 3.3.9
    1111 * Author: Chun
    1212 * Author URI: https://www.mxp.tw/contact/
     
    11621162    // 限制上傳大小以及轉正JPG影像(如果有EXIF資訊的話)https://www.mxp.tw/9318/
    11631163    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);
    11651166        $size = $file['size'] / 1024;
    11661167        if (!version_compare(get_bloginfo('version'), '5.3', '>=')) {
     
    13821383            return min($u_bytes, $p_bytes); // 跟進伺服器最大限制
    13831384        }
    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);
    13861387    }
    13871388
  • mxp-dev-tools/tags/3.3.9/readme.txt

    r3379577 r3389508  
    66Requires PHP: 5.6
    77Tested up to: 6.8
    8 Stable tag: 3.3.8
     8Stable tag: 3.3.9
    99License: GPLv2 or later
    1010License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    7777
    7878== Changelog ==
     79
     80= 3.3.9 =
     81
     82* 新增 Hook: mxp_dev_upload_file_size_limit 讓設定上傳檔案大小更彈性運用
     83* 新增 Hook: mxp_dev_image_size_limit 讓設定上傳圖片檔案大小更彈性運用
    7984
    8085= 3.3.8 =
  • mxp-dev-tools/trunk/index.php

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

    r3379577 r3389508  
    77 * Requires PHP: 5.6
    88 * Tested up to: 6.8
    9  * Stable tag: 3.3.8
    10  * Version: 3.3.8
     9 * Stable tag: 3.3.9
     10 * Version: 3.3.9
    1111 * Author: Chun
    1212 * Author URI: https://www.mxp.tw/contact/
  • mxp-dev-tools/trunk/mxp-site-manager.php

    r3379577 r3389508  
    77 * Requires PHP: 5.6
    88 * Tested up to: 6.8
    9  * Stable tag: 3.3.8
    10  * Version: 3.3.8
     9 * Stable tag: 3.3.9
     10 * Version: 3.3.9
    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.3.8';
     41    public static $VERSION = '3.3.9';
    4242
    4343    public function __construct() {
  • mxp-dev-tools/trunk/mxp-snippets.php

    r3379577 r3389508  
    77 * Requires PHP: 5.6
    88 * Tested up to: 6.8
    9  * Stable tag: 3.3.8
    10  * Version: 3.3.8
     9 * Stable tag: 3.3.9
     10 * Version: 3.3.9
    1111 * Author: Chun
    1212 * Author URI: https://www.mxp.tw/contact/
     
    11621162    // 限制上傳大小以及轉正JPG影像(如果有EXIF資訊的話)https://www.mxp.tw/9318/
    11631163    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);
    11651166        $size = $file['size'] / 1024;
    11661167        if (!version_compare(get_bloginfo('version'), '5.3', '>=')) {
     
    13821383            return min($u_bytes, $p_bytes); // 跟進伺服器最大限制
    13831384        }
    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);
    13861387    }
    13871388
  • mxp-dev-tools/trunk/readme.txt

    r3379577 r3389508  
    66Requires PHP: 5.6
    77Tested up to: 6.8
    8 Stable tag: 3.3.8
     8Stable tag: 3.3.9
    99License: GPLv2 or later
    1010License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    7777
    7878== Changelog ==
     79
     80= 3.3.9 =
     81
     82* 新增 Hook: mxp_dev_upload_file_size_limit 讓設定上傳檔案大小更彈性運用
     83* 新增 Hook: mxp_dev_image_size_limit 讓設定上傳圖片檔案大小更彈性運用
    7984
    8085= 3.3.8 =
Note: See TracChangeset for help on using the changeset viewer.