Increase download_url() timeout to 5 minutes. fixes #11551 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@12489 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
7201bc515e
commit
4bbaabff55
|
@ -458,7 +458,7 @@ function download_url( $url ) {
|
|||
if ( ! $handle )
|
||||
return new WP_Error('http_no_file', __('Could not create Temporary file'));
|
||||
|
||||
$response = wp_remote_get($url, array('timeout' => 60));
|
||||
$response = wp_remote_get($url, array('timeout' => 300));
|
||||
|
||||
if ( is_wp_error($response) ) {
|
||||
fclose($handle);
|
||||
|
|
Loading…
Reference in New Issue