Plugin Directory

Changeset 3084309


Ignore:
Timestamp:
05/10/2024 04:54:54 AM (22 months ago)
Author:
mxp
Message:

update 3.1.13

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

Legend:

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

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

    r3083670 r3084309  
    77 * Requires PHP: 5.6
    88 * Tested up to: 6.5
    9  * Stable tag: 3.1.12
    10  * Version: 3.1.12
     9 * Stable tag: 3.1.13
     10 * Version: 3.1.13
    1111 * Author: Chun
    1212 * Author URI: https://www.mxp.tw/contact/
  • mxp-dev-tools/tags/3.1.13/mxp-site-manager.php

    r3083670 r3084309  
    77 * Requires PHP: 5.6
    88 * Tested up to: 6.5
    9  * Stable tag: 3.1.12
    10  * Version: 3.1.12
     9 * Stable tag: 3.1.13
     10 * Version: 3.1.13
    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.1.12';
     41    public static $VERSION = '3.1.13';
    4242
    4343    public function __construct() {
  • mxp-dev-tools/tags/3.1.13/mxp-snippets.php

    r3083670 r3084309  
    77 * Requires PHP: 5.6
    88 * Tested up to: 6.5
    9  * Stable tag: 3.1.12
    10  * Version: 3.1.12
     9 * Stable tag: 3.1.13
     10 * Version: 3.1.13
    1111 * Author: Chun
    1212 * Author URI: https://www.mxp.tw/contact/
     
    265265        }
    266266        if (MDT_HIDE_AUTHOR_NAME) {
    267             add_filter('the_author_posts_link', array($this, 'hide_author_name'), 11, 1);
     267            // add_filter('the_author_posts_link', array($this, 'hide_author_name'), 11, 1);
     268            add_filter('the_author', array($this, 'hide_author_name'), 11, 1);
    268269        }
    269270        if (MDT_DISABLE_AVATAR) {
     
    10421043        }
    10431044    }
     1045
    10441046    // 輸出安全性的 HTTP 標頭
    10451047    public function add_security_headers($headers) {
     
    10511053        return $headers;
    10521054    }
     1055
    10531056    // 預設作者的連結都不顯示
    10541057    public function hide_author_link($link, $author_id, $author_nicename) {
    10551058        return '#';
    10561059    }
     1060
    10571061    // 預設不顯示出系統輸出的作者連結與頁面,避免資安問題
    1058     public function hide_author_name($link) {
     1062    public function hide_author_name($name) {
     1063        global $authordata;
     1064        if (is_object($authordata)) {
     1065            return ($authordata->display_name != $authordata->user_login) ? $authordata->display_name : MDT_AUTHOR_DISPLAY_NAME;
     1066        }
    10591067        return MDT_AUTHOR_DISPLAY_NAME;
    10601068    }
     1069
    10611070    // 取消站內的全球大頭貼功能,全改為預設大頭貼
    10621071    public function empty_avatar_data($args, $id_or_email) {
  • mxp-dev-tools/tags/3.1.13/readme.txt

    r3083670 r3084309  
    66Requires PHP: 5.6
    77Tested up to: 6.5
    8 Stable tag: 3.1.12
     8Stable tag: 3.1.13
    99License: GPLv2 or later
    1010License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    7878== Changelog ==
    7979
    80 = 3.1.12 =
     80= 3.1.13 =
    8181
    8282* 新增 Snippets 子主題下 languages 目錄繼承翻譯 mo 檔案的功能
  • mxp-dev-tools/trunk/index.php

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

    r3083670 r3084309  
    77 * Requires PHP: 5.6
    88 * Tested up to: 6.5
    9  * Stable tag: 3.1.12
    10  * Version: 3.1.12
     9 * Stable tag: 3.1.13
     10 * Version: 3.1.13
    1111 * Author: Chun
    1212 * Author URI: https://www.mxp.tw/contact/
  • mxp-dev-tools/trunk/mxp-site-manager.php

    r3083670 r3084309  
    77 * Requires PHP: 5.6
    88 * Tested up to: 6.5
    9  * Stable tag: 3.1.12
    10  * Version: 3.1.12
     9 * Stable tag: 3.1.13
     10 * Version: 3.1.13
    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.1.12';
     41    public static $VERSION = '3.1.13';
    4242
    4343    public function __construct() {
  • mxp-dev-tools/trunk/mxp-snippets.php

    r3083670 r3084309  
    77 * Requires PHP: 5.6
    88 * Tested up to: 6.5
    9  * Stable tag: 3.1.12
    10  * Version: 3.1.12
     9 * Stable tag: 3.1.13
     10 * Version: 3.1.13
    1111 * Author: Chun
    1212 * Author URI: https://www.mxp.tw/contact/
     
    265265        }
    266266        if (MDT_HIDE_AUTHOR_NAME) {
    267             add_filter('the_author_posts_link', array($this, 'hide_author_name'), 11, 1);
     267            // add_filter('the_author_posts_link', array($this, 'hide_author_name'), 11, 1);
     268            add_filter('the_author', array($this, 'hide_author_name'), 11, 1);
    268269        }
    269270        if (MDT_DISABLE_AVATAR) {
     
    10421043        }
    10431044    }
     1045
    10441046    // 輸出安全性的 HTTP 標頭
    10451047    public function add_security_headers($headers) {
     
    10511053        return $headers;
    10521054    }
     1055
    10531056    // 預設作者的連結都不顯示
    10541057    public function hide_author_link($link, $author_id, $author_nicename) {
    10551058        return '#';
    10561059    }
     1060
    10571061    // 預設不顯示出系統輸出的作者連結與頁面,避免資安問題
    1058     public function hide_author_name($link) {
     1062    public function hide_author_name($name) {
     1063        global $authordata;
     1064        if (is_object($authordata)) {
     1065            return ($authordata->display_name != $authordata->user_login) ? $authordata->display_name : MDT_AUTHOR_DISPLAY_NAME;
     1066        }
    10591067        return MDT_AUTHOR_DISPLAY_NAME;
    10601068    }
     1069
    10611070    // 取消站內的全球大頭貼功能,全改為預設大頭貼
    10621071    public function empty_avatar_data($args, $id_or_email) {
  • mxp-dev-tools/trunk/readme.txt

    r3083670 r3084309  
    66Requires PHP: 5.6
    77Tested up to: 6.5
    8 Stable tag: 3.1.12
     8Stable tag: 3.1.13
    99License: GPLv2 or later
    1010License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    7878== Changelog ==
    7979
    80 = 3.1.12 =
     80= 3.1.13 =
    8181
    8282* 新增 Snippets 子主題下 languages 目錄繼承翻譯 mo 檔案的功能
Note: See TracChangeset for help on using the changeset viewer.