diff --git src/wp-admin/theme-editor.php src/wp-admin/theme-editor.php index cc0c1f4c0d..bab7b69a92 100644 --- src/wp-admin/theme-editor.php +++ src/wp-admin/theme-editor.php @@ -75,7 +75,6 @@ if ( $theme->errors() && 'theme_no_stylesheet' == $theme->errors()->get_error_co $allowed_files = array(); $style_files = array(); -$has_templates = false; $file_types = wp_get_theme_file_editable_extensions( $theme ); @@ -83,7 +82,6 @@ foreach ( $file_types as $type ) { switch ( $type ) { case 'php': $allowed_files += $theme->get_files( 'php', -1 ); - $has_templates = ! empty( $allowed_files ); break; case 'css': $style_files = $theme->get_files( 'css', -1 ); @@ -252,7 +250,7 @@ if ( $theme->errors() ) {