[wp-trac] [WordPress Trac] #22269: Page template in parent theme root always overrides child

WordPress Trac noreply at wordpress.org
Wed Oct 24 10:27:20 UTC 2012


#22269: Page template in parent theme root always overrides child
--------------------------+------------------------------
 Reporter:  DrewAPicture  |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Themes        |     Version:  3.4.2
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+------------------------------

Comment (by duck_):

 I cannot reproduce if the file name is the same, e.g. showcase.php for a
 twentyeleven child theme.

 However, if the name is different, e.g. showcase2.php, then the template
 dropdown list will only have an option for the parent theme's version
 since `get_page_templates()` performs `array_flip(
 wp_get_theme()->get_page_templates() )`.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/22269#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list