Make WordPress Core


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/plugin.php

    r8521 r8266  
    3535       
    3636        if ( ! $cache_plugins = wp_cache_get('plugins', 'plugins') )
    37                 $cache_plugins = array();
     37                $cached_plugins = array();
    3838       
    3939        if ( isset($cache_plugins[ $plugin_folder ]) )
    … …  
    240240        }
    241241
    242         //Invalid is any plugin that is deactivated due to error.
    243         $invalid = array();
    244 
    245242        // If a plugin file does not exist, remove it from the list of active
    246243        // plugins.
    … …  
    248245                $result = validate_plugin($check_plugin);
    249246                if ( is_wp_error( $result ) ) {
    250                         $invalid[$check_plugin] = $result;
    251247                        deactivate_plugins( $check_plugin, true);
    252248                }
    253249        }
    254         return $invalid;
    255250}
    256251
Note: See TracChangeset for help on using the changeset viewer.