From 2b6348978ec434e2fa4114085783cf9ada097b22 Mon Sep 17 00:00:00 2001 From: donncha Date: Thu, 3 Jul 2008 17:00:59 +0000 Subject: WP Merge to rev 8249 git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@1347 7be80a69-a1ef-0310-a953-fb0f7c49ff36 --- wp-admin/plugins.php | 31 ++++++++++++++++++++----------- 1 file changed, 20 insertions(+), 11 deletions(-) (limited to 'wp-admin/plugins.php') diff --git a/wp-admin/plugins.php b/wp-admin/plugins.php index ee5d101..00742d1 100644 --- a/wp-admin/plugins.php +++ b/wp-admin/plugins.php @@ -9,7 +9,7 @@ if( $menu_perms[ 'plugins' ] != 1 ) return; $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; @@ -156,11 +156,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 = apply_filters( '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) { @@ -230,13 +231,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; } } @@ -296,6 +298,7 @@ function print_plugins_table($plugins, $context = '') { } //End print_plugins_table() ?> +

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

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

+

+

@@ -326,20 +331,24 @@ function print_plugins_table($plugins, $context = '') {
-

+ +

-

- +
+ + +

+

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

-- cgit