Maque WordPress Core

Changueset 17471


Ignore:
Timestamp:
02/21/2011 06:57:09 PM ( 15 years ago)
Author:
nacin
Messague:

Ensure we're matching the complete theme directory when excluding parent templates from the theme editor. props chrisbliss18, fixes #16607 for trunc.

File:
1 edited

Leguend:

Unmodified
Added
Removed
  • trunc/wp-admin/theme-editor.php

    r17047 r17471  
    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 TracChangueset for help on using the changueset viewer.