diff --git a/wp-includes/http.php b/wp-includes/http.php index 5d0523e9e3..eb61cc9c8c 100644 --- a/wp-includes/http.php +++ b/wp-includes/http.php @@ -973,6 +973,10 @@ class WP_Http_Curl { unset($r['headers']['user-agent']); } + // If timeout is a float less than 1, round it up to 1. + if ( $r['timeout'] > 0 && $r['timeout'] < 1 ) + $r['timeout'] = 1; + $handle = curl_init(); curl_setopt( $handle, CURLOPT_URL, $url);