升级WordPress下载失败, Operation timed out after 30

使用自动升级失败。

下载失败。:

Operation timed out after 30 seconds with 1524600 bytes received

网上查找时

Core and plugins auto-upgrade work fine now at slow connection. But I should to change timeout in function download_url() at wp-admin/includes/file.php to higher value. And after each update – change it again.

修改 wp-admin/includes/file.php

把 444行的 $response = wp_remote_get($url, array(’timeout’ => 30));

30改成300 或 600 后再次自动升级成功了

总算又可以自动升级了 懒人福音啊~~~~~

转自http://jiansuo.com/wp/archives/8459

2009年6月25日 | 归档于 未分类
标签: ,

1 条评论

  • lvy 发布于   2009.06.30 10:32

    路过,路过,支持一下

    • (Required)
    • (Required, will not be published)