mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
Handle MS Sites bulk action verification separately from individual actions.
After [33173], bulk actions would not process due to broken verification of the `bulk-sites` action. This reintroduces the proper action and treats bulk actions differently than individual site actions. See #32963. git-svn-id: https://develop.svn.wordpress.org/trunk@33194 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -63,7 +63,6 @@ if ( isset( $_GET['action'] ) ) {
|
||||
'deleteblog' => __( 'You are about to delete the site %s.' ),
|
||||
'unmatureblog' => __( 'You are about to mark the site %s as mature.' ),
|
||||
'matureblog' => __( 'You are about to mark the site %s as not mature.' ),
|
||||
'allblogs' => '',
|
||||
);
|
||||
|
||||
if ( 'confirm' === $_GET['action'] ) {
|
||||
@@ -109,19 +108,15 @@ if ( isset( $_GET['action'] ) ) {
|
||||
<?php
|
||||
require_once( ABSPATH . 'wp-admin/admin-footer.php' );
|
||||
exit();
|
||||
} elseif ( array_key_exists( $_GET['action'], $manage_actions ) ) {
|
||||
$action = $_GET['action'];
|
||||
check_admin_referer( $action . '_' . $id );
|
||||
} elseif ( 'allblogs' === $_GET['action'] ) {
|
||||
check_admin_referer( 'bulk-sites' );
|
||||
}
|
||||
|
||||
$updated_action = '';
|
||||
|
||||
if ( array_key_exists( $_GET['action'], $manage_actions ) ) {
|
||||
$action = $_GET['action'];
|
||||
if ( 'allblogs' === $action ) {
|
||||
$action = 'bulk-sites';
|
||||
}
|
||||
|
||||
check_admin_referer( $action . '_' . $id );
|
||||
}
|
||||
|
||||
switch ( $_GET['action'] ) {
|
||||
|
||||
case 'deleteblog':
|
||||
|
||||
Reference in New Issue
Block a user