[wp-trac] [WordPress Trac] #58705: Deprecate WP_Http_Curl and WP_Http_Streams classes

WordPress Trac noreply at wordpress.org
Mon Jul 3 14:03:17 UTC 2023


#58705: Deprecate WP_Http_Curl and WP_Http_Streams classes
----------------------------+--------------------
 Reporter:  SergeyBiryukov  |      Owner:  (none)
     Type:  enhancement     |     Status:  new
 Priority:  normal          |  Milestone:  6.4
Component:  HTTP API        |    Version:  4.6
 Severity:  normal          |   Keywords:
  Focuses:                  |
----------------------------+--------------------
 Background: #33055, #43414, #52622.

 Since the Requests library was introduced in [37428], the `WP_Http_Curl`
 and `WP_Http_Streams` classes are no longer used by WordPress core.

 The only two methods referencing these classes are:
 * `WP_Http::_get_first_available_transport()`
 * `WP_Http::_dispatch_request()`

 `::_dispatch_request()` was marked as deprecated in favor of
 `WP_Http::request()` in [42766] & [44346] / #43414.

 To avoid confusion:
 * `WP_Http_Curl` and `WP_Http_Streams` classes should be marked as
 deprecated in favor of `WP_Http`.
 * `WP_Http::_get_first_available_transport()` should be marked as
 deprecated too, its purpose is now served by
 `\WpOrg\Requests\Requests::get_transport_class()`.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/58705>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list