mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-10 18:37:58 +01:00
Fix Change Role dropdown. See #14579
git-svn-id: http://svn.automattic.com/wordpress/trunk@15576 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
afc59ae5dd
commit
5a4285489f
@ -33,8 +33,8 @@ $update = $doaction = '';
|
||||
if ( isset($_REQUEST['action']) )
|
||||
$doaction = $_REQUEST['action'] ? $_REQUEST['action'] : $_REQUEST['action2'];
|
||||
|
||||
if ( empty($doaction) ) {
|
||||
if ( isset($_GET['changeit']) && !empty($_GET['new_role']) )
|
||||
if ( "-1" == $doaction ) {
|
||||
if ( isset($_REQUEST['changeit']) && !empty($_REQUEST['new_role']) )
|
||||
$doaction = 'promote';
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user