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
This commit is contained in:
parent
6185986c0e
commit
28b241df2b
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue