Solusinya sebenarnya ada beberapa, salah satunya dengan meningkatkan timeout sehingga proses download dapat diselesaikan. Setelah itu, update akan berjalan lancar. Berikut caranya,

Buka /wp-admin/includes/file.php dengan text editor bisa notepad editplus dan sebagainya

Cari fungsi terkait

/**
* Downloads a url to a local file using the Snoopy HTTP Class.
*
* @since unknown
* @todo Transition over to using the new HTTP Request API (jacob).
*
* @param string $url the URL of the file to download
* @return mixed WP_Error on failure, string Filename on success.
*/
function download_url( $url ) {
//WARNING: The file is not automatically deleted, The script must unlink() the file.
if ( ! $url )
return new WP_Error(’http_no_url’, __(’Invalid URL Provided’));

$tmpfname = wp_tempnam($url);
if ( ! $tmpfname )
return new WP_Error(’http_no_file’, __(’Could not create Temporary file’));

$handle = @fopen($tmpfname, ‘wb’);
if ( ! $handle )
return new WP_Error(’http_no_file’, __(’Could not create Temporary file’));

$response = wp_remote_get($url, array(’timeout’ => 60));

if ( is_wp_error($response) ) {
fclose($handle);
unlink($tmpfname);
return $response;
}

if ( $response['response']['code'] != ‘200′ ){
fclose($handle);
unlink($tmpfname);
return new WP_Error(’http_404′, trim($response['response']['message']));
}

fwrite($handle, $response['body']);
fclose($handle);

return $tmpfname;
}

Line yang harus diganti

$response = wp_remote_get($url, array(’timeout’ => 60));

Secara default sudah diatur sampai 60 detik, dan tentunya dapat kita ubah. Pada kasus saya, saya hanya dapat men-download 800 kB atau lebih dalam 60 detik (seperti yang ditunjukkan saat update gagal), jadi untuk WordPress paket yang biasanya lebih dari 2 MB, aku harus melipatgandakannya sampai setidaknya tiga kali. Tapi untuk bermain aman, saya kalikan ke lima, atau 300 detik.

$response = wp_remote_get($url, array(’timeout’ => 300));

Harap dicatat bahwa ketika update selesai, file ini akan berubah juga, jadi ketika anda mencoba untuk update berikutnya, Anda akan kembali ke timeout default oleh pengembang WordPress. Jadi, ketika anda ingin upgrade wordpress ke versi terbaru, dianjurkan untuk mengulangi langkah ini, karena fungsi ini dapat berubah juga.

Yah, saya harap developer wordpress  akan menambah konfigurasi ini, jadi kita tidak perlu mengubah file secara manual lagi. Thanks for reading, semoga berguna.