Upgrade/Install: Skip certificate verification when upgrading a network's sites. This avoids issues with self-signed certificates or otherwise invalid certificates.

Fixes #36975

Built from https://develop.svn.wordpress.org/trunk@37695


git-svn-id: http://core.svn.wordpress.org/trunk@37661 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
John Blackbourn 2016-06-14 07:43:28 +00:00
parent b8b7a00889
commit 8427ebfd06
2 changed files with 6 additions and 2 deletions

View File

@ -69,7 +69,11 @@ switch ( $action ) {
echo "<li>$siteurl</li>";
$response = wp_remote_get( $upgrade_url, array( 'timeout' => 120, 'httpversion' => '1.1' ) );
$response = wp_remote_get( $upgrade_url, array(
'timeout' => 120,
'httpversion' => '1.1',
'sslverify' => false,
) );
if ( is_wp_error( $response ) ) {
wp_die( sprintf(
/* translators: 1: site url, 2: server error message */

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.6-alpha-37694';
$wp_version = '4.6-alpha-37695';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.