Changeset 1352649
- Timestamp:
- 02/17/2016 02:22:14 PM (10 years ago)
- Location:
- wp-switch-util/trunk
- Files:
-
- 3 edited
-
README.md (modified) (3 diffs)
-
readme.txt (modified) (5 diffs)
-
wp_switch_util.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-switch-util/trunk/README.md
r1341940 r1352649 31 31 3. Use the Settings->Wp Switch Util screen to configure the plugin 32 32 33 -- 33 34 34 35 1. 上传本插件文件到`/wp-content/plugins/wp-switch-util`目录,或者通过Wordpress插件安装画面自动安装。 … … 39 40 #### Changelog 40 41 42 = 0.0.3 = 43 44 * Fixed the bug that can't disable auto save. 45 46 -- 47 48 * 解决自动保存的BUG 49 41 50 = 0.0.2 = 42 51 … … 44 53 * Change the folder that avatar is cached to `/cache/avatar`. 45 54 55 -- 46 56 47 57 * 解决HTTPS协议下不能缓存头像的问题。 -
wp-switch-util/trunk/readme.txt
r1341940 r1352649 5 5 Requires at least: 3.0.1 6 6 Tested up to: 4.4 7 Stable tag: 0.0. 27 Stable tag: 0.0.3 8 8 License: GPLv3 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 22 22 * Disable pingback in site 23 23 * Disable the admin bar 24 25 ------------------------ 24 26 25 27 这个插件实现了以下功能: … … 56 58 == Changelog == 57 59 60 = 0.0.3 = 61 62 * Fixed the bug that can't disable auto save. 63 64 -- 65 66 * 解决自动保存的BUG 67 58 68 = 0.0.2 = 59 69 … … 61 71 * Change the folder that avatar is cached to `/cache/avatar`. 62 72 73 -- 63 74 64 75 * 解决HTTPS协议下不能缓存头像的问题。 … … 71 82 == Upgrade Notice == 72 83 73 = 0.0.2 =74 75 * Https can't cache avatar.76 77 = 0.0.1 =78 79 * New.80 81 84 == Arbitrary section == 82 85 -
wp-switch-util/trunk/wp_switch_util.php
r1341940 r1352649 4 4 Plugin URI: http://yutuo.net/archives/f685d2dbbb176e86.html 5 5 Description: This plugin can: cache the avatar, format you url, disable the histroy, disable auto save, disable admin bar 6 Version: 0.0. 26 Version: 0.0.3 7 7 Author: yutuo 8 8 Author URI: http://yutuo.net … … 26 26 'pingback' => '0', 27 27 'adminbar' => '0', 28 29 28 ); 30 29 } … … 171 170 // 禁止自动保存 172 171 if (array_key_exists('autosave', $this->options) && $this->options['autosave'] == '1') { 173 define('AUTOSAVE_INTERVAL', 36000000);174 172 add_action('wp_print_scripts', array ($this, 'disableAutoSave')); 175 173 } 176 174 // 禁止历史版本 177 175 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'); 179 177 } 180 178 // 阻止站内文章Pingback
Note: See TracChangeset
for help on using the changeset viewer.