[wp-trac] [WordPress Trac] #39773: Users Can Wrongly Set a Custom Page Template when front-page.php is in Use

WordPress Trac noreply at wordpress.org
Thu Feb 2 23:56:48 UTC 2017


#39773: Users Can Wrongly Set a Custom Page Template when front-page.php is in Use
---------------------------+-----------------------------
 Reporter:  davidakennedy  |      Owner:
     Type:  defect (bug)   |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  Themes         |    Version:  trunk
 Severity:  normal         |   Keywords:
  Focuses:                 |
---------------------------+-----------------------------
 If you try to set a custom page template in a theme that uses a `front-
 page.php`,  `front-page.php` always wins. This is expected, but a user
 doesn't know that. They're still able to save the page, and it looks like
 it should work, but on the front end, `front-page.php` wins, and they may
 be left confused.

 Discovered while researching #39299.

 Steps to reproduce:

 1. Activate Twenty Seventeen.
 2. Set the front page to a static page.
 3. Create a page template.
 4. Assign it to the static page being used as the front page.
 5. Save.
 6. Visit front end – the template isn't used.

 What I expected?

 At the very least – WordPress doesn't save this change, and provides an
 error message. Better: The page template selection box doesn't show up in
 this case because setting a template when the front page is a static page
 and a theme has `front-page.php` isn't possible.

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


More information about the wp-trac mailing list