[wp-trac] [WordPress Trac] #37705: Remove unnecessary parts of WP_HTTP which remain

WordPress Trac noreply at wordpress.org
Fri Sep 2 06:20:17 UTC 2016


#37705: Remove unnecessary parts of WP_HTTP which remain
--------------------------+------------------
 Reporter:  dd32          |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  4.7
Component:  HTTP API      |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+------------------

Comment (by dd32):

 Judging by that list, I think we can..
  * Keep `WP_Http::is_ip_address()` as a util
  * Stub `_get_first_available_transport()` /
 `$wp_http->_get_first_available_transport` and `return null`
  * Possibly keep `WP_Http::buildCookieHeader` or stub it out and `return
 null`.

 Looking at a few uses where `WP_Http::buildCookieHeader` was used, the
 HTTP api has been extended in such a way that it's broken under 4.6 or
 they're replacing large chunks of it anyway.

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


More information about the wp-trac mailing list