From 90ec88ca6e7a2581dc46885427fc763c678b0fb2 Mon Sep 17 00:00:00 2001 From: Ryan Boren 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: https://develop.svn.wordpress.org/trunk@18457 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 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 );