Make WordPress Core

Changeset 53355


Ignore:
Timestamp:
05/05/2022 04:27:30 PM (5 years ago)
Author:
SergeyBiryukov
Message:

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

Follow-up to [44986].

Props david.binda, mukesh27.
Fixes #55683.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-site-health.php

    r53117 r53355  
    382382                $plugin_updates = get_plugin_updates();
    383383
    384                 $plugins_have_updates = false;
    385                 $plugins_active       = 0;
    386                 $plugins_total        = 0;
    387                 $plugins_need_update  = 0;
     384                $plugins_active      = 0;
     385                $plugins_total       = 0;
     386                $plugins_need_update = 0;
    388387
    389388                // Loop over the available plugins and check their versions and active state.
    … …  
    395394                        }
    396395
    397                         $plugin_version = $plugin['Version'];
    398 
    399396                        if ( array_key_exists( $plugin_path, $plugin_updates ) ) {
    400397                                $plugins_need_update++;
    401                                 $plugins_have_updates = true;
    402398                        }
    403399                }
Note: See TracChangeset for help on using the changeset viewer.