DISCLAIMER: this post is older than one year and may not be up to date with latest WordPress version.

WordPress auto download/install is a very nice feature, but sometimes a few problems can appear. One of them is that WordPress don’t manage to download the new version. This happens on slow servers. Here is how to solve it.

To apply this hack, you’ll have to edit one of WordPress core files. Keep in mind that it is never recommended. This hack should be applied only if you have problems while auto-upgrading WordPress.

Open the wp-admin/includes/files.php file and go to line 448. You’ll see the following:

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

To allow more downloading time, simply change the 60 with a greater value, as for example:

$response = wp_remote_get($url, array('timeout' => 120));

One Comment

  1. well the new wordpress now haves

    $response = wp_safe_remote_get( $url, array( ‘timeout’ => $timeout, ‘stream’ => true, ‘filename’ => $tmpfname ) );

Leave a Comment

Your email address will not be published. Required fields are marked *