Fix the bulk actions on Network > Sites and Network > Users. Fixes #16364
git-svn-id: https://develop.svn.wordpress.org/trunk@17359 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
e51e83d0c9
commit
87da8df4f1
@ -185,7 +185,7 @@ switch ( $_GET['action'] ) {
|
||||
break;
|
||||
|
||||
case 'allblogs':
|
||||
if ( ( isset( $_POST['doaction'] ) || isset( $_POST['doaction2'] ) ) && isset( $_POST['allblogs'] ) ) {
|
||||
if ( ( isset( $_POST['action'] ) || isset( $_POST['action2'] ) ) && isset( $_POST['allblogs'] ) ) {
|
||||
check_admin_referer( 'bulk-sites' );
|
||||
|
||||
if ( ! current_user_can( 'manage_sites' ) )
|
||||
@ -375,7 +375,7 @@ switch ( $_GET['action'] ) {
|
||||
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'] ) ) && isset( $_POST['allusers'] ) ) {
|
||||
if ( ( isset( $_POST['action']) || isset($_POST['action2'] ) ) && isset( $_POST['allusers'] ) ) {
|
||||
check_admin_referer( 'bulk-users-network' );
|
||||
|
||||
if ( $_GET['action'] != -1 || $_POST['action2'] != -1 )
|
||||
|
Loading…
Reference in New Issue
Block a user