Plugin Directory

Changeset 1352649


Ignore:
Timestamp:
02/17/2016 02:22:14 PM (10 years ago)
Author:
yutuo
Message:

0.0.3

Location:
wp-switch-util/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • wp-switch-util/trunk/README.md

    r1341940 r1352649  
    31313. Use the Settings->Wp Switch Util screen to configure the plugin
    3232
     33--
    3334
    34351. 上传本插件文件到`/wp-content/plugins/wp-switch-util`目录,或者通过Wordpress插件安装画面自动安装。
     
    3940#### Changelog
    4041
     42= 0.0.3 =
     43
     44* Fixed the bug that can't disable auto save.
     45
     46--
     47
     48* 解决自动保存的BUG
     49
    4150= 0.0.2 =
    4251
     
    4453* Change the folder that avatar is cached to `/cache/avatar`.
    4554
     55--
    4656
    4757* 解决HTTPS协议下不能缓存头像的问题。
  • wp-switch-util/trunk/readme.txt

    r1341940 r1352649  
    55Requires at least: 3.0.1
    66Tested up to: 4.4
    7 Stable tag: 0.0.2
     7Stable tag: 0.0.3
    88License: GPLv3 or later
    99License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    2222* Disable pingback in site
    2323* Disable the admin bar
     24
     25------------------------
    2426
    2527这个插件实现了以下功能:
     
    5658== Changelog ==
    5759
     60= 0.0.3 =
     61
     62* Fixed the bug that can't disable auto save.
     63
     64--
     65
     66* 解决自动保存的BUG
     67
    5868= 0.0.2 =
    5969
     
    6171* Change the folder that avatar is cached to `/cache/avatar`.
    6272
     73--
    6374
    6475* 解决HTTPS协议下不能缓存头像的问题。
     
    7182== Upgrade Notice ==
    7283
    73 = 0.0.2 =
    74 
    75 * Https can't cache avatar.
    76 
    77 = 0.0.1 =
    78 
    79 * New.
    80 
    8184== Arbitrary section ==
    8285
  • wp-switch-util/trunk/wp_switch_util.php

    r1341940 r1352649  
    44Plugin URI: http://yutuo.net/archives/f685d2dbbb176e86.html
    55Description: This plugin can: cache the avatar, format you url, disable the histroy, disable auto save, disable admin bar
    6 Version: 0.0.2
     6Version: 0.0.3
    77Author: yutuo
    88Author URI: http://yutuo.net
     
    2626            'pingback' => '0',
    2727            'adminbar' => '0',
    28            
    2928    );
    3029}
     
    171170        // 禁止自动保存
    172171        if (array_key_exists('autosave', $this->options) && $this->options['autosave'] == '1') {
    173             define('AUTOSAVE_INTERVAL', 36000000);
    174172            add_action('wp_print_scripts', array ($this, 'disableAutoSave'));
    175173        }
    176174        // 禁止历史版本
    177175        if (array_key_exists('hirstroy', $this->options) && $this->options['hirstroy'] == '1') {
    178             define('WP_POST_REVISIONS', false );
     176            remove_action('pre_post_update', 'wp_save_post_revision');
    179177        }
    180178        // 阻止站内文章Pingback
Note: See TracChangeset for help on using the changeset viewer.