Ticket #27687: 27687.diff
| File 27687.diff, 2.0 KB (added by , 12 years ago) |
|---|
-
wp-includes/http.php
219 219 * @param array $response HTTP response. 220 220 * @return array The headers of the response. Empty array if incorrect parameter given. 221 221 */ 222 function wp_remote_retrieve_headers( &$response) {222 function wp_remote_retrieve_headers($response) { 223 223 if ( is_wp_error($response) || ! isset($response['headers']) || ! is_array($response['headers'])) 224 224 return array(); 225 225 … … 235 235 * @param string $header Header name to retrieve value from. 236 236 * @return string The header value. Empty string on if incorrect parameter given, or if the header doesn't exist. 237 237 */ 238 function wp_remote_retrieve_header( &$response, $header) {238 function wp_remote_retrieve_header($response, $header) { 239 239 if ( is_wp_error($response) || ! isset($response['headers']) || ! is_array($response['headers'])) 240 240 return ''; 241 241 … … 255 255 * @param array $response HTTP response. 256 256 * @return string the response code. Empty string on incorrect parameter given. 257 257 */ 258 function wp_remote_retrieve_response_code( &$response) {258 function wp_remote_retrieve_response_code($response) { 259 259 if ( is_wp_error($response) || ! isset($response['response']) || ! is_array($response['response'])) 260 260 return ''; 261 261 … … 272 272 * @param array $response HTTP response. 273 273 * @return string The response message. Empty string on incorrect parameter given. 274 274 */ 275 function wp_remote_retrieve_response_message( &$response) {275 function wp_remote_retrieve_response_message($response) { 276 276 if ( is_wp_error($response) || ! isset($response['response']) || ! is_array($response['response'])) 277 277 return ''; 278 278 … … 287 287 * @param array $response HTTP response. 288 288 * @return string The body of the response. Empty string if no body or incorrect parameter given. 289 289 */ 290 function wp_remote_retrieve_body( &$response) {290 function wp_remote_retrieve_body($response) { 291 291 if ( is_wp_error($response) || ! isset($response['body']) ) 292 292 return ''; 293 293
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)