#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: |
Description
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)
Change History (9)
#2
@
12 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:
s/template-home/template-front-page/
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.
#5
@
12 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.
#7
@
12 years ago
A bit of IRC logs for good measure, our future selves will thank us.
First discussion, Aug 01 2012:
https://irclogs.wordpress.org/chanlog.php?channel=wordpress-dev&day=2012-08-01&sort=asc#m430809
Subsequent renaming discussion, Aug 28 2012:
https://irclogs.wordpress.org/chanlog.php?channel=wordpress-dev&day=2012-08-28&sort=asc#m445764
Patch renames everything related to "home" to "front-page" instead, including body classes, function calls, and file names.