原因在于在function.php函數中加入了下面的代碼導緻了緩慢:
//停用版本更新通知
remove_action('load-update-core.php', 'wp_update_themes');
add_filter('pre_site_transient_update_themes', create_function('$a', "return null;"));
//停用插件更新通知
remove_action('load-update-core.php', 'wp_update_plugins');
add_filter('pre_site_transient_update_plugins', create_function('$a', "return null;"));
//停用主題更新通知
remove_action ('load-update-core.php', 'wp_update_themes');
add_filter('pre_site_transient_update_core', create_function('$a', "return null;"));
首先:去掉上述代碼
再一個發現了如下代碼:
<link rel='stylesheet' id='colors-css' href='/wp-admin/' type='text/css' media='all' />
它會加載目前頁面作為一個CSS檔案,相當于目前頁面加載了2次,且用浏覽器工具調試會背景輸出:
Resource interpreted as Stylesheet but transferred with MIME type text/html
臨時解決辦法:
default-filters.php 注釋掉
如何聯系我:【萬裡虎】www.bravetiger.cn
【QQ】3396726884 (咨詢問題100元起,幫助解決問題500元起)
【部落格】http://www.cnblogs.com/kenshinobiy/