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
This commit is contained in:
parent
ac3ab55d1e
commit
90ec88ca6e
@ -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
Block a user