Changeset 37428 for trunk/src/wp-includes/http.php
- Timestamp:
- 05/13/2016 04:41:45 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/http.php
r37115 r37428 214 214 */ 215 215 function wp_remote_retrieve_headers( $response ) { 216 if ( is_wp_error( $response) || ! isset($response['headers']) || ! is_array($response['headers']))216 if ( is_wp_error( $response ) || ! isset( $response['headers'] ) ) { 217 217 return array(); 218 } 218 219 219 220 return $response['headers']; … … 230 231 */ 231 232 function wp_remote_retrieve_header( $response, $header ) { 232 if ( is_wp_error( $response) || ! isset($response['headers']) || ! is_array($response['headers']))233 if ( is_wp_error( $response ) || ! isset( $response['headers'] ) ) { 233 234 return ''; 234 235 if ( array_key_exists($header, $response['headers']) ) 235 } 236 237 if ( isset( $response['headers'][ $header ] ) ) { 236 238 return $response['headers'][$header]; 239 } 237 240 238 241 return '';
Note: See TracChangeset
for help on using the changeset viewer.