﻿id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc
16607,Theme Editor fails to list child theme files if the child theme dir starts with the parent theme dir name,chrisbliss18,nacin,"r16714 introduced a new bug. The following line of code (used for both template and style files) fails when compared against child themes that start with the same name as their parent (such as Theme and ThemeChild):

`if ( $is_child_theme && strpos( $style_file, $themes[$theme]['Template Dir'] ) === 0 )`

This results in no files being listed for the child theme.

The fix-child-theme-editor.diff patch addresses this issue by using trailingslashit on the template directory string, thus allowing a proper check to be done:

`if ( $is_child_theme && strpos( $style_file, trailingslashit( $themes[$theme]['Template Dir'] ) ) === 0 )`",defect (bug),closed,normal,3.1,Editor,3.1,major,fixed,has-patch commit,nacin
