From 631c9bb4d60d242432052f56c00768392f42a392 Mon Sep 17 00:00:00 2001 From: donncha Date: Tue, 24 Jun 2008 17:00:10 +0000 Subject: WP Merge to revision 8180 git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@1336 7be80a69-a1ef-0310-a953-fb0f7c49ff36 --- wp-admin/plugins.php | 91 +++++++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 80 insertions(+), 11 deletions(-) (limited to 'wp-admin/plugins.php') diff --git a/wp-admin/plugins.php b/wp-admin/plugins.php index ef8424b..ee5d101 100644 --- a/wp-admin/plugins.php +++ b/wp-admin/plugins.php @@ -37,7 +37,7 @@ if( !empty($action) ) { exit; break; case 'activate-selected': - check_admin_referer('mass-manage-plugins'); + check_admin_referer('bulk-manage-plugins'); activate_plugins($_POST['checked'], 'plugins.php?error=true'); $recent = (array)get_option('recently_activated'); @@ -69,7 +69,7 @@ if( !empty($action) ) { exit; break; case 'deactivate-selected': - check_admin_referer('mass-manage-plugins'); + check_admin_referer('bulk-manage-plugins'); deactivate_plugins($_POST['checked']); $deactivated = array(); foreach( (array)$_POST['checked'] as $plugin ) @@ -81,20 +81,87 @@ if( !empty($action) ) { case 'delete-selected': if( ! current_user_can('delete_plugins') ) wp_die(__('You do not have sufficient permissions to delete plugins for this blog.')); - check_admin_referer('mass-manage-plugins'); - $plugins = $_REQUEST['checked']; + + check_admin_referer('bulk-manage-plugins'); + + $plugins = $_REQUEST['checked']; //$_POST = from the plugin form; $_GET = from the FTP details screen. include(ABSPATH . 'wp-admin/update.php'); $title = __('Delete Plugin'); $parent_file = 'plugins.php'; - - $delete_result = delete_plugins($plugins); + + if( ! isset($_REQUEST['verify-delete']) ) { + wp_enqueue_script('jquery'); + require_once('admin-header.php'); + ?> +
+

+ +

+

+

+

+

+
+ + + "; + } + ?> + + +
+
+ +
+ +

+ +
+
- +
@@ -247,7 +314,7 @@ function print_plugins_table($plugins, $context = '') {

- +
@@ -261,8 +328,9 @@ function print_plugins_table($plugins, $context = '') {

- + +
@@ -271,6 +339,7 @@ function print_plugins_table($plugins, $context = '') {
+

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

-- cgit