WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/05/2016 03:50:54 AM (3 years ago)
Author:
dd32
Message:

HTTP: Document that the return value of wp_remote_retrieve_headers() changed from a simple array to an object which implements ArrayAccess.

Props mrahmadawais, sudar, swissspidy.
Fixes #37722

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/http.php

    r38726 r38730  
    209209 *
    210210 * @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
    211214 *
    212215 * @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.
    214217 */
    215218function wp_remote_retrieve_headers( $response ) {
Note: See TracChangeset for help on using the changeset viewer.