#22131 closed defect (bug) (fixed)
front-page.php only applied to static page
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 3.5 | Priority: | normal |
Severity: | normal | Version: | 3.5 |
Component: | Themes | Keywords: | |
Focuses: | Cc: |
Description
I was doing a bit of template testing this morning when I noticed that template hierarchy may be broke in the latest trunk. Steps to reproduce:
- Create a test theme with front-page.php and index.php.
- Ensure that Settings -> Reading -> "Enable a static front page" is unchecked.
- Visit http://example.com/
At this point, index.php is used to load the content.
- Check the Settings -> Reading -> "Enable a static front page" option.
- Visit http://example.com/
At this point, front-page.php is used to load the content.
I ran the same test in 3.4.2 and front-page.php was always loaded for http://example.com/ regardless of the Settings -> Reading -> "Front page displays" setting.
Change History (4)
Note: See
TracTickets for help on using
tickets.
In [22135]: