From dea25c77e3119dc37238d8ba6a45f784b654bc72 Mon Sep 17 00:00:00 2001
From: Ryan Boren
Date: Mon, 30 Jun 2008 23:12:18 +0000
Subject: [PATCH] Plugins page layout improvements from DD32. see #7091
git-svn-id: https://develop.svn.wordpress.org/trunk@8218 602fd350-edb4-49c9-b593-d223f7449a82
---
wp-admin/plugins.php | 30 ++++++++++++++++++++----------
1 file changed, 20 insertions(+), 10 deletions(-)
diff --git a/wp-admin/plugins.php b/wp-admin/plugins.php
index 52876c57ca..6584d0804d 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()
?>
+
%s directory and it will be automatically deactivated.'), WP_PLUGIN_DIR); ?>
+
+
-
+
+
+
+
+
+
WordPress plugin directory.'); ?>
%s directory. Once a plugin is uploaded, you may activate it here.'), WP_PLUGIN_DIR); ?>