Fix the bulk actions on Network > Sites and Network > Users. Fixes #16364

git-svn-id: http://svn.automattic.com/wordpress/trunk@17359 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
westi 2011-01-25 14:34:41 +00:00
parent 8e98240a80
commit 5268a0e7d8
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 )