wordpress是个好东西,但是结合中国的实际,有些东西,如果不解决的话,在中国大陆,打开不仅慢,而且还有很多不必要的麻烦,当然是谁搞出这些麻烦的,大家都懂的,所以就不说了,这里只说解决办法,比如打开wordoress做的网站首页后发现总是在加载s.w.org而导致网站打开缓慢。下面的代码可以去掉这个脚本,从而加快速度(代码插入后台——外观——编辑——functions.php)
/**
* Disable the emoji’s
*/
function disable_emojis() {
remove_action( ‘wp_head’, ‘print_emoji_detection_script’, 7 );
remove_action( ‘admin_print_scripts’, ‘print_emoji_detection_script’ );
remove_action( ‘wp_print_styles’, ‘print_emoji_styles’ );
remove_action( ‘admin_print[……]