Make WordPress Core

Opened 9 months ago

#51736 new enhancement

wp_remote_retrieve_header returns an Array for multiple headers

Reported by: robtarr Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: HTTP API Keywords: dev-feedback
Focuses: Cc:


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.

Change History (0)

Note: See TracTickets for help on using tickets.