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();

' />

- +