Could not bulk edit users in Network Admin due to reversed logic on capability check, and incorrect action included for comparing to nonce. Props beaulebens
git-svn-id: https://develop.svn.wordpress.org/trunk@16501 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
ce4b9ff07a
commit
bc9642a3f5
@ -10,7 +10,7 @@ class WP_MS_Users_List_Table extends WP_List_Table {
|
||||
|
||||
function WP_MS_Users_List_Table() {
|
||||
parent::WP_List_Table( array(
|
||||
'plural' => 'users'
|
||||
'plural' => 'users-network'
|
||||
) );
|
||||
}
|
||||
|
||||
|
@ -367,7 +367,7 @@ switch ( $_GET['action'] ) {
|
||||
break;
|
||||
|
||||
case 'allusers':
|
||||
if ( current_user_can( 'manage_network_users' ) )
|
||||
if ( !current_user_can( 'manage_network_users' ) )
|
||||
wp_die( __( 'You do not have permission to access this page.' ) );
|
||||
|
||||
if ( isset( $_POST['doaction']) || isset($_POST['doaction2'] ) ) {
|
||||
|
Loading…
Reference in New Issue
Block a user