diff --git wp-admin/theme-editor.php wp-admin/theme-editor.php
index 12681a7..1fc5c48 100644
|
|
|
if ($allowed_files) : |
| 180 | 180 | $template_dir = $themes[$theme]['Template Dir']; |
| 181 | 181 | foreach ( $themes[$theme]['Template Files'] as $template_file ) { |
| 182 | 182 | // Don't show parent templates. |
| 183 | | if ( $is_child_theme && strpos( $template_file, $themes[$theme]['Template Dir'] ) === 0 ) |
| | 183 | if ( $is_child_theme && strpos( $template_file, trailingslashit( $themes[$theme]['Template Dir'] ) ) === 0 ) |
| 184 | 184 | continue; |
| 185 | 185 | |
| 186 | 186 | $description = trim( get_file_description($template_file) ); |
| … |
… |
if ($allowed_files) : |
| 202 | 202 | $stylesheet_dir = $themes[$theme]['Stylesheet Dir']; |
| 203 | 203 | foreach ( $themes[$theme]['Stylesheet Files'] as $style_file ) { |
| 204 | 204 | // Don't show parent styles. |
| 205 | | if ( $is_child_theme && strpos( $style_file, $themes[$theme]['Template Dir'] ) === 0 ) |
| | 205 | if ( $is_child_theme && strpos( $style_file, trailingslashit( $themes[$theme]['Template Dir'] ) ) === 0 ) |
| 206 | 206 | continue; |
| 207 | 207 | |
| 208 | 208 | $description = trim( get_file_description($style_file) ); |