diff --git a/wp-includes/http.php b/wp-includes/http.php index 26a0fc3a7e..240fd03795 100644 --- a/wp-includes/http.php +++ b/wp-includes/http.php @@ -389,8 +389,6 @@ function wp_remote_retrieve_cookie_value( $response, $name ) { * @return bool */ function wp_http_supports( $capabilities = array(), $url = null ) { - $http = _wp_http_get_object(); - $capabilities = wp_parse_args( $capabilities ); $count = count( $capabilities ); @@ -407,7 +405,7 @@ function wp_http_supports( $capabilities = array(), $url = null ) { } } - return (bool) $http->_get_first_available_transport( $capabilities ); + return WpOrg\Requests\Requests::has_capabilities( $capabilities ); } /** diff --git a/wp-includes/version.php b/wp-includes/version.php index 97bed631a2..007c511f7a 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.7-alpha-58933'; +$wp_version = '6.7-alpha-58934'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.