From 5ed01b14a4f7f61a4b803da5387d8445584ef7ba Mon Sep 17 00:00:00 2001 From: Pete Mall Date: Fri, 26 Nov 2010 00:20:18 +0000 Subject: [PATCH] Site themes cleanup. See #14897 git-svn-id: https://develop.svn.wordpress.org/trunk@16592 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 ) { } ?> -

+