From 7997df84a8791a8d96b6d64bdc78110749fe897e Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 5 May 2022 16:29:08 +0000 Subject: [PATCH] Site Health: Remove unused variables in `WP_Site_Health::get_test_plugin_version()`. Follow-up to [44986]. Props david.binda, mukesh27. Fixes #55683. Built from https://develop.svn.wordpress.org/trunk@53355 git-svn-id: http://core.svn.wordpress.org/trunk@52944 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/class-wp-site-health.php | 10 +++------- wp-includes/version.php | 2 +- 2 files changed, 4 insertions(+), 8 deletions(-) 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.