From ecf851aee2430e7a3ea30d80e60c65ebb402bf9a Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Fri, 22 Feb 2008 23:36:53 +0000 Subject: [PATCH] Add bulk role change to users.php git-svn-id: https://develop.svn.wordpress.org/trunk@6990 602fd350-edb4-49c9-b593-d223f7449a82 --- 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);
+ +