[wp-trac] [WordPress Trac] #37722: wp_remote_retrieve_headers no longer an array in WordPress 4.6

WordPress Trac noreply at wordpress.org
Thu Aug 18 18:16:01 UTC 2016


#37722: wp_remote_retrieve_headers no longer an array in WordPress 4.6
--------------------------+--------------------
 Reporter:  jstkrn        |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  4.6.1
Component:  HTTP API      |     Version:  4.6
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |     Focuses:
--------------------------+--------------------

Comment (by jstkrn):

 Replying to [comment:1 swissspidy]:
 > Previously, there was the same issue with responses, see [37989]. We
 should be consistent with return types, so I'd consider this a bug.

 This is indeed likely to break some more plugins, given that typehints
 fail and `is_array` now returns false, but I also embrace changes such as
 the introduction of Requests and headers now being case-insensitive is a
 nice feature. Hence the suggestion to keep the current implementation and
 updating the docs (although that may not fit with WordPress's
 compatibility policy, I wouldn't know)

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


More information about the wp-trac mailing list