Make WordPress Core

Changeset 56723

Timestamp:
09/26/2023 04:53:20 PM (10 months ago)
Author:
SergeyBiryukov
Message:

HTTP API: Deprecate the http_api_transports filter.

The filter is only used within the WP_Http::_get_first_available_transport() method, which has been marked as deprecated in favor of \WpOrg\Requests\Requests::get_transport_class().

Follow-up to [56655]

Props desrosj, hellofromTonya.
Fixes #58705.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-http.php

    r56655 r56723  
    532532         *
    533533         * @since 3.7.0
     534
    534535         *
    535536         * @param string[] $transports Array of HTTP transports to check. Default array contains
     
    538539         * @param string   $url        The URL to request.
    539540         */
    540         $request_order = apply_filters( 'http_api_transports', $transports, $args, $url );
     541        $request_order = apply_filters );
    541542
    542543        // Loop over each transport on each HTTP request looking for one which will serve this request's needs.
Note: See TracChangeset for help on using the changeset viewer.