X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/7f1521bf193b382565eb753043c161f4cb3fcda7..3d39054f012aefe514b3f5509e32f09fc4feda44:/wp-admin/network/upgrade.php diff --git a/wp-admin/network/upgrade.php b/wp-admin/network/upgrade.php index f1574aea..199838cf 100644 --- a/wp-admin/network/upgrade.php +++ b/wp-admin/network/upgrade.php @@ -36,10 +36,10 @@ get_current_screen()->set_help_sidebar( require_once( ABSPATH . 'wp-admin/admin-header.php' ); if ( ! current_user_can( 'manage_network' ) ) - wp_die( __( 'You do not have permission to access this page.' ), 403 ); + wp_die( __( 'Sorry, you are not allowed to access this page.' ), 403 ); echo '
'; -echo '

' . __( 'Upgrade Network' ) . '

'; +echo '

' . __( 'Upgrade Network' ) . '

'; $action = isset($_GET['action']) ? $_GET['action'] : 'show'; @@ -48,6 +48,9 @@ switch ( $action ) { $n = ( isset($_GET['n']) ) ? intval($_GET['n']) : 0; if ( $n < 5 ) { + /** + * @global string $wp_db_version + */ global $wp_db_version; update_site_option( 'wpmu_upgrade_site', $wp_db_version ); } @@ -66,7 +69,11 @@ switch ( $action ) { echo "
  • $siteurl
  • "; - $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 */ @@ -89,7 +96,7 @@ switch ( $action ) { * * @since MU * - * @param int $blog_id The id of the blog. + * @param int $blog_id The Site ID. */ do_action( 'wpmu_upgrade_site', $details[ 'blog_id' ] ); } @@ -108,12 +115,12 @@ switch ( $action ) { default: if ( get_site_option( 'wpmu_upgrade_site' ) != $GLOBALS['wp_db_version'] ) : ?> -

    +

    -

    -

    +

    +