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
This commit is contained in:
Dominik Schilling 2016-07-31 18:20:29 +00:00
parent 1abd5f0be7
commit e64c675fc5
2 changed files with 2 additions and 1 deletions

View File

@ -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();
}

View File

@ -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.