From e64c675fc5f002a53bb9fc10606b900ec5aa964f Mon Sep 17 00:00:00 2001 From: Dominik Schilling Date: Sun, 31 Jul 2016 18:20:29 +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. Built from https://develop.svn.wordpress.org/trunk@38173 git-svn-id: http://core.svn.wordpress.org/trunk@38114 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-http.php | 1 + wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/wp-includes/class-http.php b/wp-includes/class-http.php index e9ff205142..d3a893787c 100644 --- a/wp-includes/class-http.php +++ b/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(); } diff --git a/wp-includes/version.php b/wp-includes/version.php index 9a0d9b849b..8ebe91a686 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.6-RC1-38172'; +$wp_version = '4.6-RC1-38173'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.