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:
parent
8e98240a80
commit
5268a0e7d8
|
@ -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