[wp-trac] [WordPress Trac] #58705: Deprecate WP_Http_Curl and WP_Http_Streams classes
WordPress Trac
noreply at wordpress.org
Thu Sep 21 18:27:33 UTC 2023
#58705: Deprecate WP_Http_Curl and WP_Http_Streams classes
---------------------------------------------+----------------------
Reporter: SergeyBiryukov | Owner: desrosj
Type: enhancement | Status: closed
Priority: normal | Milestone: 6.4
Component: HTTP API | Version: 4.6
Severity: normal | Resolution: fixed
Keywords: has-patch commit needs-dev-note | Focuses:
---------------------------------------------+----------------------
Changes (by desrosj):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"56655" 56655]:
{{{
#!CommitTicketReference repository="" revision="56655"
HTTP API: Deprecate `WP_Http_Curl` and `WP_Http_Streams` classes.
These classes have not been used in WordPress Core since the Requests
library was introduced in [37428]. These classes are now deprecated in
favor of `WP_Http`.
There are two remaining spots in Core that reference these classes:
- The `WP_Http::_dispatch_request()` method, which was marked as
deprecated in favor of `WP_Http::request()` in [42766]/[44346].
- The `WP_Http::_get_first_available_transport()`.
That latter is now also marked as deprecated in favor of
`\WpOrg\Requests\Requests::get_transport_class()`.
Props SergeyBiryukov, rajinsharwar, hellofromTonya.
Fixes #58705.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/58705#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list