From e601e726288904f0b752e1ce13eb067e9960ff6a Mon Sep 17 00:00:00 2001 From: Tonya Mork Date: Mon, 6 Dec 2021 18:29:24 +0000 Subject: [PATCH] HTTP API: Revert changeset [52315]. Reverting Requests 2.0.0 changes and moving to WordPress 6.0 cycle. Why? The namespace and file case renaming revealed 2 issues in Core's upgrader process. See https://core.trac.wordpress.org/ticket/54504#comment:22 for more information. See #54562, #54504. git-svn-id: https://develop.svn.wordpress.org/trunk@52327 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class-wp-http.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/class-wp-http.php b/src/wp-includes/class-wp-http.php index e1244aef72..a4a501c90a 100644 --- a/src/wp-includes/class-wp-http.php +++ b/src/wp-includes/class-wp-http.php @@ -378,7 +378,7 @@ class WP_Http { // Check for proxies. $proxy = new WP_HTTP_Proxy(); if ( $proxy->is_enabled() && $proxy->send_through_proxy( $url ) ) { - $options['proxy'] = new WpOrg\Requests\Proxy\Http( $proxy->host() . ':' . $proxy->port() ); + $options['proxy'] = new WpOrg\Requests\Proxy\HTTP( $proxy->host() . ':' . $proxy->port() ); if ( $proxy->use_authentication() ) { $options['proxy']->use_authentication = true;