Site Health: Remove unused variables in WP_Site_Health::get_test_plugin_version().

Follow-up to [44986].

Props david.binda, mukesh27.
Fixes #55683.

git-svn-id: https://develop.svn.wordpress.org/trunk@53355 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2022-05-05 16:27:30 +00:00
parent 94e4dfdb23
commit 62040b8b9d

View File

@ -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;
}
}