Make WordPress Core

Changeset 56655


Ignore:
Timestamp:
09/21/2023 06:27:17 PM (18 months ago)
Author:
desrosj
Message:

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.

Location:
trunk/src/wp-includes
Files:
3 edited

Legend:

Unmodified
Added
Removed
Note: See TracChangeset for help on using the changeset viewer.