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
This commit is contained in:
parent
686a22802b
commit
7997df84a8
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue