Make WordPress Core

Ticket #31405: network_upgrade_ssl.patch

File network_upgrade_ssl.patch, 984 bytes (added by intersol, 10 years ago)
  • wp-admin/network/upgrade.php

     
    6464                       $upgrade_url = admin_url( 'upgrade.php?step=upgrade_db' );
    6565                       restore_current_blog();
    6666                       echo "<li>$siteurl</li>";
     67                        if( strpos( $url, $your_ssl_domain ) === false )
     68                                $upgrade_url = str_replace( 'https', 'http', $upgrade_url );
    6769                       $response = wp_remote_get( $upgrade_url, array( 'timeout' => 120, 'httpversion' => '1.1' ) );
    6870                       if ( is_wp_error( $response ) )
    6971                               wp_die( sprintf( __( 'Warning! Problem updating %1$s. Your server may not be able to connect to sites running on it. Error message: <em>%2$s</em>' ), $siteurl, $response->get_error_message() ) );