[wp-trac] [WordPress Trac] #51736: wp_remote_retrieve_header returns an Array for multiple headers
WordPress Trac
noreply at wordpress.org
Mon Nov 9 19:10:17 UTC 2020
#51736: wp_remote_retrieve_header returns an Array for multiple headers
-------------------------+-----------------------------
Reporter: robtarr | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: HTTP API | Version:
Severity: normal | Keywords: dev-feedback
Focuses: |
-------------------------+-----------------------------
When calling `wp_remote_retrieve_header` and specifying a header that has
multiple entries in the response this method returns an array. The docs,
however, indicate that it should return a string.
I think that this should probably throw an error if the wrong type comes
back.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/51736>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list