diff --git a/wp-admin/plugins.php b/wp-admin/plugins.php index 52876c57c..6584d0804 100644 --- a/wp-admin/plugins.php +++ b/wp-admin/plugins.php @@ -2,7 +2,7 @@ require_once('admin.php'); $action = ''; -foreach( array('activate-selected', 'deactivate-selected', 'delete-selected') as $action_key ) { +foreach( array('activate-selected', 'deactivate-selected', 'delete-selected', 'clear-recent-list') as $action_key ) { if( isset($_POST[$action_key]) ) { $action = $action_key; break; @@ -149,11 +149,13 @@ if( !empty($action) ) {

$time ) if( $recently_activated != get_option('recently_activated') ) //If array changed, update it. update_option('recently_activated', $recently_activated); -$all_plugins = get_plugins(); - $plugins_allowedtags = array('a' => array('href' => array(),'title' => array()),'abbr' => array('title' => array()),'acronym' => array('title' => array()),'code' => array(),'em' => array(),'strong' => array()); foreach( (array)$all_plugins as $plugin_file => $plugin_data) { @@ -223,13 +224,14 @@ foreach( (array)$all_plugins as $plugin_file => $plugin_data) { if( ! empty($plugin_data['Author']) ) $plugin_data['Description'] .= ' ' . sprintf( __('By %s'), $plugin_data['Author'] ) . '.'; + //Filter into individual sections if ( is_plugin_active($plugin_file) ) { $active_plugins[ $plugin_file ] = $plugin_data; } else { if ( isset( $recently_activated[ $plugin_file ] ) ) //Was the plugin recently activated? $recent_plugins[ $plugin_file ] = $plugin_data; else - $available_plugins[ $plugin_file ] = $plugin_data; + $inactive_plugins[ $plugin_file ] = $plugin_data; } } @@ -289,6 +291,7 @@ function print_plugins_table($plugins, $context = '') { } //End print_plugins_table() ?> +

@@ -303,9 +306,11 @@ function print_plugins_table($plugins, $context = '') {

%s directory and it will be automatically deactivated.'), WP_PLUGIN_DIR); ?>

+

+

@@ -315,6 +320,7 @@ function print_plugins_table($plugins, $context = '') { +
@@ -322,11 +328,11 @@ function print_plugins_table($plugins, $context = '') {
-

+ +

-
@@ -336,10 +342,14 @@ function print_plugins_table($plugins, $context = '') {

- +
+ +

+ +

WordPress plugin directory.'); ?>

%s directory. Once a plugin is uploaded, you may activate it here.'), WP_PLUGIN_DIR); ?>