From 5899bf0f328bb165410b9408129fefe13738db95 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sun, 24 May 2020 09:15:07 +0000 Subject: [PATCH] Coding Standards: Use strict comparison for `$wp_db_version` check in `wp-admin/network/upgrade.php`. Follow-up to [47787], [47788]. See #50155, #49542. Built from https://develop.svn.wordpress.org/trunk@47852 git-svn-id: http://core.svn.wordpress.org/trunk@47628 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/network/upgrade.php | 4 +++- wp-includes/version.php | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/wp-admin/network/upgrade.php b/wp-admin/network/upgrade.php index 7604675f43..98e3a8b41f 100644 --- a/wp-admin/network/upgrade.php +++ b/wp-admin/network/upgrade.php @@ -90,6 +90,7 @@ switch ( $action ) { 'sslverify' => false, ) ); + if ( is_wp_error( $response ) ) { wp_die( sprintf( @@ -109,6 +110,7 @@ switch ( $action ) { * @param array|WP_Error $response The upgrade response array or WP_Error on failure. */ do_action( 'after_mu_upgrade', $response ); + /** * Fires after each site has been upgraded. * @@ -132,7 +134,7 @@ switch ( $action ) { break; case 'show': default: - if ( get_site_option( 'wpmu_upgrade_site' ) != $GLOBALS['wp_db_version'] ) : + if ( (int) get_site_option( 'wpmu_upgrade_site' ) !== $GLOBALS['wp_db_version'] ) : ?>

diff --git a/wp-includes/version.php b/wp-includes/version.php index c1c32e2130..96642bf424 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.5-alpha-47851'; +$wp_version = '5.5-alpha-47852'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.