From a2274a39d0145f69a8d0f2372f69f1036e0bb22e Mon Sep 17 00:00:00 2001 From: ryan Date: Fri, 22 Feb 2008 23:36:53 +0000 Subject: [PATCH] Add bulk role change to users.php git-svn-id: http://svn.automattic.com/wordpress/trunk@6990 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/users.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/wp-admin/users.php b/wp-admin/users.php index a85a617f93..ade687c28c 100644 --- a/wp-admin/users.php +++ b/wp-admin/users.php @@ -11,8 +11,12 @@ $parent_file = 'users.php'; $action = $_REQUEST['action']; $update = ''; -if ( empty($action) && isset($_GET['deleteit']) ) - $action = 'delete'; +if ( empty($action) ) { + if ( isset($_GET['deleteit']) ) + $action = 'delete'; + elseif ( isset($_GET['changeit']) && !empty($_GET['new_role']) ) + $action = 'promote'; +} if ( empty($_REQUEST) ) { $referer = ''; @@ -294,6 +298,8 @@ unset($role_links);
+ +