From b32e8f72842eb6dfca8fedfcde7747e5ae568a47 Mon Sep 17 00:00:00 2001 From: hellofromTonya Date: Fri, 3 Dec 2021 18:03:59 +0000 Subject: [PATCH] HTTP API: Fix classname `WpOrg\Requests\Proxy\Http` in `WP_Http::request()`. Renaming the classname was missed in [52244] when updating changes in `WP_Http::request()` for the Requests 2.0.0 external library upgrade. `HTTP` class no longer exists and caused a fatal error `Fatal error: Uncaught Error: Class 'WpOrg\Requests\Proxy\HTTP' not found`. This commit renames the class to `Http` and resolves the fatal error. Follow-up to [52244]. Props alexeydemidov, costdev, mukesh27. Fixes #54562. Built from https://develop.svn.wordpress.org/trunk@52315 git-svn-id: http://core.svn.wordpress.org/trunk@51907 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-http.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/class-wp-http.php b/wp-includes/class-wp-http.php index a4a501c90a..e1244aef72 100644 --- a/wp-includes/class-wp-http.php +++ b/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; diff --git a/wp-includes/version.php b/wp-includes/version.php index 01c43cbf70..4f05f2e44d 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '5.9-beta1-52314'; +$wp_version = '5.9-beta1-52315'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.