Changeset 8544
- Timestamp:
- 08/05/2008 04:14:55 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/http.php
r8536 r8544 186 186 $r = wp_parse_args( $args, $defaults ); 187 187 188 if ( ! is_null($headers) && ! is_array($headers) ) { 188 if ( is_null($headers) ) 189 $headers = array(); 190 191 if ( ! is_array($headers) ) { 189 192 $processedHeaders = WP_Http::processHeaders($headers); 190 193 $headers = $processedHeaders['headers']; 191 } else {192 $headers = array();193 194 } 194 195 … … 197 198 198 199 if ( is_null($body) ) { 200 $transports = WP_Http::_getTransport(); 201 } else { 199 202 if ( is_array($body) || is_object($body) ) 200 203 $body = http_build_query($body); 201 204 202 $transports = WP_Http::_getTransport();203 } else204 205 $transports = WP_Http::_postTransport(); 206 } 205 207 206 208 $response = array( 'headers' => array(), 'body' => '', 'response' => array('code', 'message') );
Note: See TracChangeset
for help on using the changeset viewer.