Changeset 38730
- Timestamp:
- 10/05/2016 03:50:54 AM (8 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-http-requests-response.php
r38164 r38730 66 66 * @access public 67 67 * 68 * @return array Map of header name to header value. 68 * @see \Requests_Utility_CaseInsensitiveDictionary 69 * 70 * @return \Requests_Utility_CaseInsensitiveDictionary Map of header name to header value. 69 71 */ 70 72 public function get_headers() { 71 // Ensure headers remain case-insensitive 73 // Ensure headers remain case-insensitive. 72 74 $converted = new Requests_Utility_CaseInsensitiveDictionary(); 73 75 … … 75 77 if ( count( $value ) === 1 ) { 76 78 $converted[ $key ] = $value[0]; 77 } 78 else { 79 } else { 79 80 $converted[ $key ] = $value; 80 81 } -
trunk/src/wp-includes/http.php
r38726 r38730 209 209 * 210 210 * @since 2.7.0 211 * @since 4.6.0 Return value changed from an array to an Requests_Utility_CaseInsensitiveDictionary instance. 212 * 213 * @see \Requests_Utility_CaseInsensitiveDictionary 211 214 * 212 215 * @param array $response HTTP response. 213 * @return array The headers of the response. Empty array if incorrect parameter given.216 * @return array|\Requests_Utility_CaseInsensitiveDictionary The headers of the response. Empty array if incorrect parameter given. 214 217 */ 215 218 function wp_remote_retrieve_headers( $response ) {
Note: See TracChangeset
for help on using the changeset viewer.