From 5bc2f55d502e74f386ea94eae26538ce7bb67caf Mon Sep 17 00:00:00 2001 From: dd32 Date: Sun, 18 Mar 2012 03:12:12 +0000 Subject: [PATCH] WP_Http: cURL: Use the parsed args $r, rather than the raw $args. Mentioned in #20219 git-svn-id: http://svn.automattic.com/wordpress/trunk@20207 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-http.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-includes/class-http.php b/wp-includes/class-http.php index d4247fd9f3..dc112317d2 100644 --- a/wp-includes/class-http.php +++ b/wp-includes/class-http.php @@ -1020,8 +1020,8 @@ class WP_Http_Curl { } } - $is_local = isset($args['local']) && $args['local']; - $ssl_verify = isset($args['sslverify']) && $args['sslverify']; + $is_local = isset($r['local']) && $r['local']; + $ssl_verify = isset($r['sslverify']) && $r['sslverify']; if ( $is_local ) $ssl_verify = apply_filters('https_local_ssl_verify', $ssl_verify); elseif ( ! $is_local ) @@ -1112,7 +1112,7 @@ class WP_Http_Curl { $theBody = $theResponse; // If no response, and It's not a HEAD request with valid headers returned - if ( 0 == strlen($theResponse) && ('HEAD' != $args['method'] || empty($this->headers)) ) { + if ( 0 == strlen($theResponse) && ('HEAD' != $r['method'] || empty($this->headers)) ) { if ( $curl_error = curl_error($handle) ) return new WP_Error('http_request_failed', $curl_error); if ( in_array( curl_getinfo( $handle, CURLINFO_HTTP_CODE ), array(301, 302) ) )