From dc32494f74f490b275c0b475f081f65871ba07c4 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sun, 2 Mar 2014 08:39:15 +0000 Subject: [PATCH] Display site deletion confirmation as a regular admin page. props jeremyfelt. fixes #27223. Built from https://develop.svn.wordpress.org/trunk@27348 git-svn-id: http://core.svn.wordpress.org/trunk@27200 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/network/sites.php | 30 +++++++++++------------------- 1 file changed, 11 insertions(+), 19 deletions(-) diff --git a/wp-admin/network/sites.php b/wp-admin/network/sites.php index 9b8973c462..85db8d7e59 100644 --- a/wp-admin/network/sites.php +++ b/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' ); + ?> +
+

- +
- - +