Changes from trunk/wp-admin/includes/plugin.php at r8266 to branches/2.6/wp-admin/includes/plugin.php at r8521
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.6/wp-admin/includes/plugin.php
r8266 r8521 35 35 36 36 if ( ! $cache_plugins = wp_cache_get('plugins', 'plugins') ) 37 $cache d_plugins = array();37 $cache_plugins = array(); 38 38 39 39 if ( isset($cache_plugins[ $plugin_folder ]) ) … … 240 240 } 241 241 242 //Invalid is any plugin that is deactivated due to error. 243 $invalid = array(); 244 242 245 // If a plugin file does not exist, remove it from the list of active 243 246 // plugins. … … 245 248 $result = validate_plugin($check_plugin); 246 249 if ( is_wp_error( $result ) ) { 250 $invalid[$check_plugin] = $result; 247 251 deactivate_plugins( $check_plugin, true); 248 252 } 249 253 } 254 return $invalid; 250 255 } 251 256
Note: See TracChangeset
for help on using the changeset viewer.