From 902bfdba2129e6a20a803fae043cbb4a46155acd Mon Sep 17 00:00:00 2001 From: ryan Date: Fri, 22 Jan 2010 22:28:48 +0000 Subject: [PATCH] Fix warnings. see #11644 git-svn-id: http://svn.automattic.com/wordpress/trunk@12802 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/ms-themes.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/wp-admin/ms-themes.php b/wp-admin/ms-themes.php index cb8f2003fd..b1007e823e 100644 --- a/wp-admin/ms-themes.php +++ b/wp-admin/ms-themes.php @@ -5,11 +5,10 @@ $title = __('WordPress › Admin › Themes'); $parent_file = 'ms-admin.php'; require_once('admin-header.php'); -if( is_super_admin() == false ) { +if ( !is_super_admin() ) wp_die( __('You do not have permission to access this page.') ); -} -if (isset($_GET['updated'])) { +if ( isset($_GET['updated']) ) { ?>

$theme ) { + $class = ''; + foreach ( (array) $themes as $key => $theme ) { $total_theme_count++; $theme_key = wp_specialchars($theme['Stylesheet']); $class = ('alt' == $class) ? '' : 'alt'; $class1 = $enabled = $disabled = ''; - if( isset( $allowed_themes[ $theme_key ] ) == true ) { + if ( isset( $allowed_themes[ $theme_key ] ) == true ) { $enabled = 'checked="checked" '; $activated_themes_count++; $class1 = ' active'; @@ -52,13 +52,13 @@ $allowed_themes = get_site_allowed_themes(); -     +     - + - + @@ -66,7 +66,7 @@ $allowed_themes = get_site_allowed_themes();

' />

- +