From 28b241df2b858b25932d37a866d239106cc90f58 Mon Sep 17 00:00:00 2001 From: ryan Date: Thu, 21 Jul 2011 21:44:35 +0000 Subject: [PATCH] Empty headers instance var instead of unsetting to avoid warning. Props chrisbliss18. fixes #18157 git-svn-id: http://svn.automattic.com/wordpress/trunk@18457 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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 1cf44041b9..dc7cff4d7e 100644 --- a/wp-includes/class-http.php +++ b/wp-includes/class-http.php @@ -1117,7 +1117,7 @@ class WP_Http_Curl { return new WP_Error('http_request_failed', __('Too many redirects.')); } - unset( $this->headers ); + $this->headers = ''; $response = array(); $response['code'] = curl_getinfo( $handle, CURLINFO_HTTP_CODE );