mirror of
git://develop.git.wordpress.org/
synced 2025-03-20 20:09:53 +01:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@52315 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
4e6823d17c
commit
c5bd6215ba
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user