Make WordPress Core

Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#21909 closed defect (bug) (fixed)

Twenty Twelve: rename home page template to front-page

Reported by: lancewillett Owned by:
Milestone: 3.5 Priority: normal
Severity: normal Version:
Component: Bundled Theme Keywords:
Focuses: Cc:


Based on feedback from Nacin, changing the homepage template name to "Front Page Template" and the file to front-page.php will be more semantic and better for user experience. It also matches how core names the static front page option.

Attachments (2)

21909.diff (11.6 KB) - added by lancewillett 9 years ago.
21909.2.diff (13.4 KB) - added by lancewillett 9 years ago.

Download all attachments as: .zip

Change History (9)

9 years ago

9 years ago

#1 @lancewillett
9 years ago

Patch renames everything related to "home" to "front-page" instead, including body classes, function calls, and file names.

#2 @lancewillett
9 years ago

Anyone using Twenty Twelve in its beta mode via core trunk will need to resave any page that uses the front-page template, due to the template name change. The _wp_page_template post meta value should go from page-templates/home.php to page-templates/front-page.php for those pages.

Child theme authors should check their CSS as the following selector values are changing:

  1. s/template-home/template-front-page/
  2. s/home-widgets/front-widgets/

For WP.com I'll add a filter to the theme version there to update all the post meta values on each site on the fly, so nothing breaks in terms of page templates. I'll also fix the Custom CSS cases on WP.com by hand for the new CSS selectors -- after an audit I only found a few, maybe 5-6 sites that would be affected.

#3 @lancewillett
9 years ago

In [21886]:

Twenty Twelve: rename homepage template to front-page; including s/home/front-page/ in many places -- see notes in ticket. See #21909.

#4 @lancewillett
9 years ago

In [21893]:

Twenty Twelve: fix typo in stylesheet description, props nacin. See #21909.

#5 @lancewillett
9 years ago

  • Resolution set to fixed
  • Status changed from new to closed

Code is now pushed out to WordPress.com with the additional filter to fix the template path; I also fixed 6 cases of Custom CSS selector changes.

#6 @ocean90
9 years ago

#21939 was marked as a duplicate.

#7 @lancewillett
9 years ago

A bit of IRC logs for good measure, our future selves will thank us.

First discussion, Aug 01 2012:

Subsequent renaming discussion, Aug 28 2012:

Note: See TracTickets for help on using tickets.