diff --git a/wp-admin/admin.php b/wp-admin/admin.php index dac51ba1aa..1186f9bedc 100644 --- a/wp-admin/admin.php +++ b/wp-admin/admin.php @@ -72,14 +72,15 @@ if ( get_option( 'db_upgraded' ) ) { * @param bool $do_mu_upgrade Whether to perform the Multisite upgrade routine. Default true. */ if ( apply_filters( 'do_mu_upgrade', true ) ) { - $c = get_blog_count(); + $blog_count = get_blog_count(); /* * If there are 50 or fewer sites, run every time. Otherwise, throttle to reduce load: * attempt to do no more than threshold value, with some +/- allowed. */ - if ( $c <= 50 || ( $c > 50 && mt_rand( 0, (int) ( $c / 50 ) ) === 1 ) ) { + if ( $blog_count <= 50 || ( $blog_count > 50 && mt_rand( 0, (int) ( $blog_count / 50 ) ) === 1 ) ) { require_once ABSPATH . WPINC . '/http.php'; + $response = wp_remote_get( admin_url( 'upgrade.php?step=1' ), array( @@ -87,11 +88,14 @@ if ( get_option( 'db_upgraded' ) ) { 'httpversion' => '1.1', ) ); + /** This action is documented in wp-admin/network/upgrade.php */ do_action( 'after_mu_upgrade', $response ); + unset( $response ); } - unset( $c ); + + unset( $blog_count ); } } diff --git a/wp-includes/version.php b/wp-includes/version.php index 0dcf609f68..5c14976784 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.9-alpha-60922'; +$wp_version = '6.9-alpha-60923'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.