00. 家裡的速度有時不夠快 (其實是在亂下載),自動更新或更新插件,有時更新到一半就 time out,出現Operation timed out after 60 seconds with 1024 bytes received,但又懶的自己下載插件Plugin。
01. 找到 /wp-admin/includes/ 下的 file.php
02. Ctrl+F 找到
$response = wp_remote_get($url, array('timeout' => 60));// 60 那邊可能是其它數字 (eg:30), WordPress 版本不同數字略有差異
// 如果找不到,就用 $response = wp_remote_get($url, array(
03. 把數字改大一點 (eg:3600),單位是秒。
$response = wp_remote_get($url, array('timeout' => 3600));04. 存檔,就完成了,接下來就可以快樂的更新了。 // 直到下一次的大改版
// 如果是放在網路空間的,要下載下來改,改完再上傳覆蓋