[wp-trac] [WordPress Trac] #51736: wp_remote_retrieve_header returns an Array for multiple headers

WordPress Trac noreply at wordpress.org
Mon Dec 13 17:23:25 UTC 2021


#51736: wp_remote_retrieve_header returns an Array for multiple headers
----------------------------+------------------------------
 Reporter:  robtarr         |       Owner:  johnjamesjacoby
     Type:  task (blessed)  |      Status:  assigned
 Priority:  normal          |   Milestone:  5.9
Component:  HTTP API        |     Version:  2.7
 Severity:  normal          |  Resolution:
 Keywords:  needs-patch     |     Focuses:  docs
----------------------------+------------------------------

Comment (by johnjamesjacoby):

 > Are you meaning that the `$response['headers'][ $header ]` could have an
 array of header entries for a single header name?

 Correct! "could" being the operative word, unfortunately.

 It may be a string, but it could also be an array. It all depends on what
 gets sent back.

 > is this something on your list before 5.9 Beta 3?

 I see this strictly as a documentation change, without additional checks,
 errors, or auditing – at least for the here and now. As such, anytime
 during the 5.9 cycle where docs changes are allowed seems OK to me.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/51736#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list