Make WordPress Core


Ignore:
File:
1 edited

Legend:

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

    r8266 r8521  
    3535       
    3636        if ( ! $cache_plugins = wp_cache_get('plugins', 'plugins') )
    37                 $cached_plugins = array();
     37                $cache_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
    242245        // If a plugin file does not exist, remove it from the list of active
    243246        // plugins.
    … …  
    245248                $result = validate_plugin($check_plugin);
    246249                if ( is_wp_error( $result ) ) {
     250                        $invalid[$check_plugin] = $result;
    247251                        deactivate_plugins( $check_plugin, true);
    248252                }
    249253        }
     254        return $invalid;
    250255}
    251256
Note: See TracChangeset for help on using the changeset viewer.