关闭wordpress自动保存修订文章功能的插件:Disable autosave
标题有点长,大家看看我这篇文章的ID,已经是510了,但是实际写的文字也就一两百篇吧,插件我就不上传了,这里我把插件的代码上传上来,保存为php,编码utf8,自己动手哈!上传到plugins后启用就可以了!也有教材要修改代码的,我懒,喜欢的就复制用上吧!
<?php/*Plugin Name: Disable autosaveDescription: Disables autosaving on the write/edit page/post panelPlugin URI: http://samm.dreamhosters.com/wordpress/plugins/Author: SamVersion: 0.1=== Disable autosave ===Tags: autosaveRequires at least: 2.5Tested up to: 2.5.1Might stop runaway autosaving*/add_action(‘admin_print_scripts’, ‘plugin_deregister_autosave’);function plugin_deregister_autosave() {wp_deregister_script(‘autosave’);echo ‘<!– ‘.basename(__FILE__).’ ‘.__FUNCTION__.’() –>’;}?><?php
/*Plugin Name: Disable autosaveDescription: Disables autosaving on the write/edit page/post panelPlugin URI: http://samm.dreamhosters.com/wordpress/plugins/Author: SamVersion: 0.1
=== Disable autosave ===Tags: autosaveRequires at least: 2.5Tested up to: 2.5.1
Might stop runaway autosaving
*/
add_action(‘admin_print_scripts’, ‘plugin_deregister_autosave’);
function plugin_deregister_autosave() { wp_deregister_script(‘autosave’); echo ‘<!– ‘.basename(__FILE__).’ ‘.__FUNCTION__.’() –>’;}
?>