全局开启评论功能
UPDATE wp_posts SET comment_status = ‘open’ WHERE post_status = ‘publish’;
全局关闭评论功能
UPDATE wp_posts SET comment_status = ‘close’ WHERE post_status = ‘publish’;
修改这个文件 /wp-includes/script-loader.php,
找到:fonts.googleapis.com,替换成:fonts.useso.com
sed -i ‘s/fonts.googleapis.com/fonts.useso.com/g’ wp-includes/script-loader.php
编辑wp-config.php 添加以下内容
define(‘AUTOSAVE_INTERVAL’, 300 ); // seconds
define(‘WP_POST_REVISIONS’, false );
清除数据库已保存的修订版本数据
DELETEFROM wp_posts WHERE post_type ="revision";
修改 wp-includes/default-constants.php
if ( !defined(‘WP_POST_REVISIONS’) )
define(‘WP_POST_REVISIONS’, true);
if ( !defined(‘WP_POST_REVISIONS’) )
define(‘WP_POST_REVISIONS’, false);