From 00ef2437c539906f622f7337a9df0435fbefc2d4 Mon Sep 17 00:00:00 2001 From: PeteMall Date: Fri, 26 Nov 2010 00:20:18 +0000 Subject: [PATCH] Site themes cleanup. See #14897 git-svn-id: http://svn.automattic.com/wordpress/trunk@16592 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/network/site-themes.php | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/wp-admin/network/site-themes.php b/wp-admin/network/site-themes.php index bb5e725bcb..e016660d81 100644 --- a/wp-admin/network/site-themes.php +++ b/wp-admin/network/site-themes.php @@ -84,6 +84,11 @@ if ( $action ) { exit; } +if ( isset( $_GET['action'] ) && 'update-site' == $_GET['action'] ) { + wp_redirect( wp_get_referer() ); + exit(); +} + add_thickbox(); add_screen_option( 'per_page', array( 'label' => _x( 'Themes', 'themes per page (screen options)' ) ) ); @@ -91,10 +96,7 @@ $title = sprintf( __('Edit Site: %s'), get_blogaddress_by_id($id)); $parent_file = 'sites.php'; $submenu_file = 'sites.php'; -require('../admin-header.php'); - -require_once(ABSPATH . 'wp-admin/admin-header.php'); -?> +require('../admin-header.php'); ?>
@@ -109,7 +111,7 @@ foreach ( $tabs as $tab_id => $tab ) { } ?> -

+