Changeset 47844
- Timestamp:
- 05/22/2020 11:18:47 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/theme-editor.php
r47808 r47844 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 ); … … 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': … … 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
Note: See TracChangeset
for help on using the changeset viewer.