From d5fbdf4f580ad7efc72919566e7e7bbdf55c3904 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sat, 11 Oct 2025 23:41:32 +0000 Subject: [PATCH] Coding Standards: Rename `$c` to `$blog_count` in `wp-admin/admin.php`. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Per the [https://developer.wordpress.org/coding-standards/wordpress-coding-standards/php/#naming-conventions Naming Conventions]: > Don’t abbreviate variable names unnecessarily; let the code be unambiguous and self-documenting. Follow-up to [https://mu.trac.wordpress.org/changeset/1940 mu:1940], [12712]. Props costdev, mukesh27. See #63168. Built from https://develop.svn.wordpress.org/trunk@60923 git-svn-id: http://core.svn.wordpress.org/trunk@60259 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/admin.php | 10 +++++++--- wp-includes/version.php | 2 +- 2 files changed, 8 insertions(+), 4 deletions(-) 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.