From 6bcdf328b2260298eba8cbf8b7d3fff40ea30dab Mon Sep 17 00:00:00 2001 From: ryan Date: Wed, 15 Oct 2008 16:38:17 +0000 Subject: [PATCH] Give downloads a longer timeout. see #7793 git-svn-id: http://svn.automattic.com/wordpress/trunk@9186 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/file.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/includes/file.php b/wp-admin/includes/file.php index c4dd62923a..c1230e6ad6 100644 --- a/wp-admin/includes/file.php +++ b/wp-admin/includes/file.php @@ -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);