寻觅生命中的那一片浅草......

WordPress更新失败及解决方案

打开 wordpress\wp-admin\includes\file.php

找到 $response = wp_remote_get($url, array(‘timeout’ => 30)); 这一行,在function download_url( $url )这个函数中,如果使用的是 WordPress 2.7的话,那么在第444行。

将此行修改为: $response = wp_remote_get($url, array(‘timeout’ => 120));

将超时时间修改为2分钟,再次更新插件,哈哈,终于成功了!

转载自:http://blog.zxlm.cn/show-12568-1.html

尚无评论

发表评论

2024年三月
« 5月    
 123
45678910
11121314151617
18192021222324
25262728293031