Give downloads a longer timeout. see #7793
git-svn-id: https://develop.svn.wordpress.org/trunk@9186 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
1bd22eb542
commit
3db8a45955
@ -434,7 +434,7 @@ function download_url( $url ) {
|
||||
if ( ! $handle )
|
||||
return new WP_Error('http_no_file', __('Could not create Temporary file'));
|
||||
|
||||
$response = wp_remote_get($url);
|
||||
$response = wp_remote_get($url, array('timeout' => 30));
|
||||
|
||||
if ( is_wp_error($response) ) {
|
||||
fclose($handle);
|
||||
|
Loading…
Reference in New Issue
Block a user