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

Fixes #36975


git-svn-id: https://develop.svn.wordpress.org/trunk@37695 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
John Blackbourn 2016-06-14 07:42:49 +00:00
parent 87b095dae9
commit 50a3c1c368
1 changed files with 5 additions and 1 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 */