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:
parent
87b095dae9
commit
50a3c1c368
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user