From 11e4642c677d913f7d6ca465f2e458c7fee3f5f1 Mon Sep 17 00:00:00 2001 From: Dominik Schilling Date: Sun, 31 Jul 2016 18:19:02 +0000 Subject: [PATCH] HTTP API: Set `$use_authentication` property of `Requests_Proxy_HTTP` to true when proxy authentication is required. Props francescobagnoli for initial patch. Fixes #37494. git-svn-id: https://develop.svn.wordpress.org/trunk@38173 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class-http.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/wp-includes/class-http.php b/src/wp-includes/class-http.php index e9ff205142..d3a893787c 100644 --- a/src/wp-includes/class-http.php +++ b/src/wp-includes/class-http.php @@ -356,6 +356,7 @@ class WP_Http { $options['proxy'] = new Requests_Proxy_HTTP( $proxy->host() . ':' . $proxy->port() ); if ( $proxy->use_authentication() ) { + $options['proxy']->use_authentication = true; $options['proxy']->user = $proxy->username(); $options['proxy']->pass = $proxy->password(); }