[wp-trac] [WordPress Trac] #51736: wp_remote_retrieve_header returns an Array for multiple headers
WordPress Trac
noreply at wordpress.org
Tue Jan 4 18:52:58 UTC 2022
#51736: wp_remote_retrieve_header returns an Array for multiple headers
----------------------------+------------------------------
Reporter: robtarr | Owner: johnjamesjacoby
Type: task (blessed) | Status: closed
Priority: normal | Milestone: 5.9
Component: HTTP API | Version: 2.7
Severity: normal | Resolution: fixed
Keywords: has-patch | Focuses: docs
----------------------------+------------------------------
Changes (by davidbaumwald):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"52441" 52441]:
{{{
#!CommitTicketReference repository="" revision="52441"
HTTP API: Improve docs for `wp_remote_retrieve_header` function return
value.
This change updates the `@return` docs for `wp_remote_retrieve_header` to
specify that an array can also be returned if the requested header key has
multiple values.
Props robtarr, johnjamesjacoby, felipeelia, hellofromTonya, costdev.
Fixes #51736.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/51736#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list