diff --git src/wp-admin/theme-editor.php src/wp-admin/theme-editor.php
index cc0c1f4c0d..bab7b69a92 100644
|
|
if ( $theme->errors() && 'theme_no_stylesheet' == $theme->errors()->get_error_co |
75 | 75 | |
76 | 76 | $allowed_files = array(); |
77 | 77 | $style_files = array(); |
78 | | $has_templates = false; |
79 | 78 | |
80 | 79 | $file_types = wp_get_theme_file_editable_extensions( $theme ); |
81 | 80 | |
… |
… |
foreach ( $file_types as $type ) { |
83 | 82 | switch ( $type ) { |
84 | 83 | case 'php': |
85 | 84 | $allowed_files += $theme->get_files( 'php', -1 ); |
86 | | $has_templates = ! empty( $allowed_files ); |
87 | 85 | break; |
88 | 86 | case 'css': |
89 | 87 | $style_files = $theme->get_files( 'css', -1 ); |
… |
… |
if ( $theme->errors() ) { |
252 | 250 | <div id="templateside"> |
253 | 251 | <h2 id="theme-files-label"><?php _e( 'Theme Files' ); ?></h2> |
254 | 252 | <ul role="tree" aria-labelledby="theme-files-label"> |
255 | | <?php if ( ( $has_templates || $theme->parent() ) && $theme->parent() ) : ?> |
| 253 | <?php if ($theme->parent()) : ?> |
256 | 254 | <li class="howto"> |
257 | 255 | <?php |
258 | 256 | printf( |