mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-05 07:58:35 +01:00
Fix warnings. see #11644
git-svn-id: http://svn.automattic.com/wordpress/trunk@12802 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
4b6278340c
commit
902bfdba21
@ -5,9 +5,8 @@ $title = __('WordPress › Admin › Themes');
|
|||||||
$parent_file = 'ms-admin.php';
|
$parent_file = 'ms-admin.php';
|
||||||
require_once('admin-header.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.') );
|
wp_die( __('You do not have permission to access this page.') );
|
||||||
}
|
|
||||||
|
|
||||||
if ( isset($_GET['updated']) ) {
|
if ( isset($_GET['updated']) ) {
|
||||||
?>
|
?>
|
||||||
@ -35,6 +34,7 @@ $allowed_themes = get_site_allowed_themes();
|
|||||||
<tbody id="plugins">
|
<tbody id="plugins">
|
||||||
<?php
|
<?php
|
||||||
$total_theme_count = $activated_themes_count = 0;
|
$total_theme_count = $activated_themes_count = 0;
|
||||||
|
$class = '';
|
||||||
foreach ( (array) $themes as $key => $theme ) {
|
foreach ( (array) $themes as $key => $theme ) {
|
||||||
$total_theme_count++;
|
$total_theme_count++;
|
||||||
$theme_key = wp_specialchars($theme['Stylesheet']);
|
$theme_key = wp_specialchars($theme['Stylesheet']);
|
||||||
|
Loading…
Reference in New Issue
Block a user