mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
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:
parent
94e4dfdb23
commit
62040b8b9d
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user