Changeset 17470
- Timestamp:
- 02/21/2011 06:55:48 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.1/wp-admin/theme-editor.php
r17047 r17470 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( $template_dir ) ) === 0 ) 184 184 continue; 185 185 … … 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( $template_dir ) ) === 0 ) 206 206 continue; 207 207
Note: See TracChangeset
for help on using the changeset viewer.