Changeset 17563 for trunk/wp-includes/class-http.php
- Timestamp:
- 03/26/2011 03:32:05 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/class-http.php
r17555 r17563 360 360 $cookies = array(); 361 361 $newheaders = array(); 362 foreach ( $headers as $tempheader ) {362 foreach ( (array) $headers as $tempheader ) { 363 363 if ( empty($tempheader) ) 364 364 continue; … … 1122 1122 * @var string 1123 1123 */ 1124 private $headers ;1124 private $headers = ''; 1125 1125 1126 1126 /** … … 1260 1260 1261 1261 // If no response, and It's not a HEAD request with valid headers returned 1262 if ( empty($theResponse) && 'HEAD' != $args['method'] && ! empty($this->headers) ) {1262 if ( empty($theResponse) && ('HEAD' != $args['method'] || empty($this->headers)) ) { 1263 1263 if ( $curl_error = curl_error($handle) ) 1264 1264 return new WP_Error('http_request_failed', $curl_error);
Note: See TracChangeset
for help on using the changeset viewer.