]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-includes/http.php
Wordpress 2.9.1
[autoinstalls/wordpress.git] / wp-includes / http.php
index d8086befbd9481207cfb8546a9ee1c344ff07fcc..46b94c7c59b00fa9ae8a9427b0fe2a1a482b87aa 100644 (file)
@@ -1296,16 +1296,9 @@ class WP_Http_Curl {
 
                // CURLOPT_TIMEOUT and CURLOPT_CONNECTTIMEOUT expect integers.  Have to use ceil since
                // a value of 0 will allow an ulimited timeout.
 
                // CURLOPT_TIMEOUT and CURLOPT_CONNECTTIMEOUT expect integers.  Have to use ceil since
                // a value of 0 will allow an ulimited timeout.
-               // Use _MS if available.
-               if ( defined( 'CURLOPT_TIMEOUT_MS' ) ) {
-                       $timeout_ms = (int) ceil( 1000 * $r['timeout'] );
-                       curl_setopt( $handle, CURLOPT_CONNECTTIMEOUT_MS, $timeout_ms );
-                       curl_setopt( $handle, CURLOPT_TIMEOUT_MS, $timeout_ms );
-               } else {
-                       $timeout = (int) ceil( $r['timeout'] );
-                       curl_setopt( $handle, CURLOPT_CONNECTTIMEOUT, $timeout );
-                       curl_setopt( $handle, CURLOPT_TIMEOUT, $timeout );
-               }
+               $timeout = (int) ceil( $r['timeout'] );
+               curl_setopt( $handle, CURLOPT_CONNECTTIMEOUT, $timeout );
+               curl_setopt( $handle, CURLOPT_TIMEOUT, $timeout );
 
                curl_setopt( $handle, CURLOPT_URL, $url);
                curl_setopt( $handle, CURLOPT_RETURNTRANSFER, true );
 
                curl_setopt( $handle, CURLOPT_URL, $url);
                curl_setopt( $handle, CURLOPT_RETURNTRANSFER, true );