+ /** This action is documented in wp-admin/network/edit.php */
+ do_action( 'wpmuadminedit' );
+
+ if ( 'confirm' === $_GET['action'] ) {
+ check_admin_referer( 'confirm' );
+
+ if ( ! headers_sent() ) {
+ nocache_headers();
+ header( 'Content-Type: text/html; charset=utf-8' );
+ }
+
+ if ( $current_site->blog_id == $id ) {
+ wp_die( __( 'You are not allowed to change the current site.' ) );
+ }
+
+ require_once( ABSPATH . 'wp-admin/admin-header.php' );
+ ?>
+ <div class="wrap">
+ <h2><?php _e( 'Confirm your action' ); ?></h2>
+ <form action="sites.php?action=<?php echo esc_attr( $_GET['action2'] ) ?>" method="post">
+ <input type="hidden" name="action" value="<?php echo esc_attr( $_GET['action2'] ) ?>" />
+ <input type="hidden" name="id" value="<?php echo esc_attr( $id ); ?>" />
+ <input type="hidden" name="_wp_http_referer" value="<?php echo esc_attr( wp_get_referer() ); ?>" />
+ <?php wp_nonce_field( $_GET['action2'], '_wpnonce', false ); ?>
+ <p><?php echo esc_html( wp_unslash( $_GET['msg'] ) ); ?></p>
+ <?php submit_button( __( 'Confirm' ), 'button' ); ?>
+ </form>
+ </div>
+ <?php
+ require_once( ABSPATH . 'wp-admin/admin-footer.php' );
+ exit();
+ }
+
+ $updated_action = '';
+
+ $manage_actions = array( 'deleteblog', 'allblogs', 'archiveblog', 'unarchiveblog', 'activateblog', 'deactivateblog', 'unspamblog', 'spamblog', 'unmatureblog', 'matureblog' );
+ if ( in_array( $_GET['action'], $manage_actions ) ) {
+ $action = $_GET['action'];
+ if ( 'allblogs' === $action )
+ $action = 'bulk-sites';
+
+ check_admin_referer( $action );
+ }