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:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user