diff --git a/wp-admin/includes/class-wp-site-health.php b/wp-admin/includes/class-wp-site-health.php index 538552133d..fb8138f776 100644 --- a/wp-admin/includes/class-wp-site-health.php +++ b/wp-admin/includes/class-wp-site-health.php @@ -381,10 +381,9 @@ class WP_Site_Health { $plugins = get_plugins(); $plugin_updates = get_plugin_updates(); - $plugins_have_updates = false; - $plugins_active = 0; - $plugins_total = 0; - $plugins_need_update = 0; + $plugins_active = 0; + $plugins_total = 0; + $plugins_need_update = 0; // Loop over the available plugins and check their versions and active state. foreach ( $plugins as $plugin_path => $plugin ) { @@ -394,11 +393,8 @@ class WP_Site_Health { $plugins_active++; } - $plugin_version = $plugin['Version']; - if ( array_key_exists( $plugin_path, $plugin_updates ) ) { $plugins_need_update++; - $plugins_have_updates = true; } } diff --git a/wp-includes/version.php b/wp-includes/version.php index ee4496c209..04b7a6f788 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.1-alpha-53354'; +$wp_version = '6.1-alpha-53355'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.