WordPress默认是打开修订功能,因为常修改日志,会导致数据变大,对我来说很不适用。
关闭Wordpress修订功能
编辑wp-config.php 文件
/** Absolute path to the WordPress directory. */
if ( !defined('ABSPATH') )
define('ABSPATH', dirname(__FILE__) . '/');
替换为以下代码:
/* That's all, stop editing! Happy blogging. */
define('WP_POST_REVISIONS',false);
/** Absolute path to the WordPress directory. */
if ( !defined('ABSPATH') )
define('ABSPATH', dirname(__FILE__) . '/');
具体说明请查看官方的说明文档“Revision Management”
清除数据库中的修订版
最好先备份数据。
在线直接安装 WP Cleaner 并启用插件。然后在设置下的WP Cleaner项中 删除修订版本。