Fix MS Sites nonce. See #14579

git-svn-id: http://svn.automattic.com/wordpress/trunk@15602 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
scribu 2010-09-09 10:17:31 +00:00
parent ab8bf0a05e
commit 7ae94106b4
1 changed files with 2 additions and 2 deletions

View File

@ -396,7 +396,7 @@ switch ( $_GET['action'] ) {
case 'allblogs':
if ( isset( $_POST['doaction']) || isset($_POST['doaction2'] ) ) {
check_admin_referer( 'bulk-ms-sites', '_wpnonce_bulk-ms-sites' );
check_admin_referer( 'bulk-sites' );
if ( ! current_user_can( 'manage_sites' ) )
wp_die( __( 'You do not have permission to access this page.' ) );
@ -582,7 +582,7 @@ switch ( $_GET['action'] ) {
wp_die( __( 'You do not have permission to access this page.' ) );
if ( isset( $_POST['doaction']) || isset($_POST['doaction2'] ) ) {
check_admin_referer( 'bulk-ms-users', '_wpnonce_bulk-ms-users' );
check_admin_referer( 'bulk-ms-users' );
if ( $_GET['action'] != -1 || $_POST['action2'] != -1 )
$doaction = $_POST['action'] != -1 ? $_POST['action'] : $_POST['action2'];