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:
Peter Westwood 2011-01-25 14:34:41 +00:00
parent e51e83d0c9
commit 87da8df4f1
1 changed files with 2 additions and 2 deletions

View File

@ -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 )