From 95555955d27a166ed2862d5f10ffe7f90709e43e Mon Sep 17 00:00:00 2001 From: Dion Hulse Date: Sat, 7 Apr 2012 07:16:30 +0000 Subject: [PATCH] WP_HTTP: Curl: $theHeaders is an array, not an object, introduced in [20370]. Props kurtpayne. Fixes #20389 See #20219 git-svn-id: https://develop.svn.wordpress.org/trunk@20399 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/class-http.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/class-http.php b/wp-includes/class-http.php index c8d4623d4f..e9db9bcd3f 100644 --- a/wp-includes/class-http.php +++ b/wp-includes/class-http.php @@ -1110,7 +1110,7 @@ class WP_Http_Curl { $theBody = $theResponse; // If no response - if ( 0 == strlen( $theResponse ) && empty( $theHeaders->headers ) ) { + if ( 0 == strlen( $theResponse ) && empty( $theHeaders['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 ) ) )