diff --git a/wp-admin/theme-editor.php b/wp-admin/theme-editor.php index d464f541c..5f29a408b 100644 --- a/wp-admin/theme-editor.php +++ b/wp-admin/theme-editor.php @@ -55,6 +55,8 @@ if ( ! $theme ) wp_die( __( 'The requested theme does not exist.' ) ); $allowed_files = $theme->get_files( 'php', 1 ); +$has_templates = ! empty( $allowed_files ); + $style_files = $theme->get_files( 'css' ); if ( isset( $style_files['style.css'] ) ) { $allowed_files['style.css'] = $style_files['style.css']; @@ -132,7 +134,7 @@ default: (' . $file_show . ')'; ?> @@ -142,14 +144,14 @@ if ( $description != $file_show )
-

display('Name') . ': ' . $description; ?>

+

display('Name'); if ( $description ) echo ': ' . $description; ?>