Give downloads a longer timeout. see #7793
git-svn-id: http://svn.automattic.com/wordpress/trunk@9186 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
97f11e8f42
commit
6bcdf328b2
|
@ -434,7 +434,7 @@ function download_url( $url ) {
|
||||||
if ( ! $handle )
|
if ( ! $handle )
|
||||||
return new WP_Error('http_no_file', __('Could not create Temporary file'));
|
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) ) {
|
if ( is_wp_error($response) ) {
|
||||||
fclose($handle);
|
fclose($handle);
|
||||||
|
|
Loading…
Reference in New Issue