[wp-trac] [WordPress Trac] #36402: front-page.php behavior for child themes

WordPress Trac noreply at wordpress.org
Sat Apr 2 08:19:01 UTC 2016


#36402: front-page.php behavior for child themes
-------------------------+-----------------------------
 Reporter:  cristovaov   |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Themes       |    Version:  trunk
 Severity:  normal       |   Keywords:
  Focuses:  template     |
-------------------------+-----------------------------
 Currently, if a parent theme has a `front-page.php` template, child theme
 inherits this too.

 I think this should not happen.

 On this specific case, I think that a child theme should behave like a
 parent one.
 The attached patch checks:
 {{{
    if
      * A child theme is NOT used
      or
        * A child theme is being used and includes 'front-page.php'
    then
      * Load 'front-page.php'
 }}}

 This allows a child theme to include its own `front-page.php` template or
 setting the ''front-page'' to a page from the 'Reading' setting.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/36402>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list