[wp-trac] [WordPress Trac] #39740: Twenty Seventeen: Allow child themes to use front-page.php when front page is set to "Your Latest Posts"

WordPress Trac noreply at wordpress.org
Thu Apr 27 11:00:14 UTC 2017


#39740: Twenty Seventeen: Allow child themes to use front-page.php when front page
is set to "Your Latest Posts"
---------------------------+------------------------------
 Reporter:  johnnyb        |       Owner:
     Type:  defect (bug)   |      Status:  reopened
 Priority:  high           |   Milestone:  Awaiting Review
Component:  Bundled Theme  |     Version:  4.7
 Severity:  normal         |  Resolution:
 Keywords:  dev-feedback   |     Focuses:  template
---------------------------+------------------------------
Changes (by johnbillion):

 * keywords:   => dev-feedback
 * priority:  normal => high
 * focuses:   => template


Comment:

 I just stumbled across this and lost quite a bit of time figuring out why
 the `front-page.php` template was not loading when, according to the
 template hierarchy, it should be.

 Reading through the comments above, I understand why this was done, but a
 default theme breaking the default template hierarchy by removing
 templates from it demonstrates a lack of trust in the template hierarchy.
 If a default theme can't operate as intended without removing templates
 from the hierarchy, then how do we expect other themes to?

 From https://make.wordpress.org/core/2016/09/09/new-functions-hooks-and-
 behaviour-for-theme-developers-in-wordpress-4-7/:

 > It’s important to remember that the consistency of the template
 hierarchy in WordPress is what makes standardised theme structures
 possible. It’s highly recommended that you do not remove templates from
 the candidate hierarchy using these new filters, unless you’re absolutely
 certain of what you’re doing.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/39740#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list