From 8ac662c73ba36f344daaa8a76315bb9ea1313656 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sun, 2 Mar 2014 08:38:47 +0000 Subject: [PATCH] Display site deletion confirmation as a regular admin page. props jeremyfelt. fixes #27223. git-svn-id: https://develop.svn.wordpress.org/trunk@27348 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/network/sites.php | 30 +++++++++++------------------- 1 file changed, 11 insertions(+), 19 deletions(-) diff --git a/src/wp-admin/network/sites.php b/src/wp-admin/network/sites.php index 9b8973c462..85db8d7e59 100644 --- a/src/wp-admin/network/sites.php +++ b/src/wp-admin/network/sites.php @@ -59,34 +59,26 @@ if ( isset( $_GET['action'] ) ) { 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.' ) ); - ?> - - > - - - <?php _e( 'WordPress › Confirm your action' ); ?> - - - - -

+ 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' ); + ?> +
+

- +
- - +