[wp-trac] [WordPress Trac] #22131: front-page.php only applied to static page

WordPress Trac wp-trac at lists.automattic.com
Mon Oct 8 18:25:17 UTC 2012


#22131: front-page.php only applied to static page
--------------------------+-----------------------------
 Reporter:  mfields       |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Themes        |    Version:  trunk
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 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:

 1. Create a test theme with front-page.php and index.php.
 2. Ensure that Settings -> Reading -> "Enable a static front page" is
 unchecked.
 3. Visit http://example.com/

 At this point, index.php is used to load the content.

 4. Check the Settings -> Reading -> "Enable a static front page" option.
 3. 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.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/22131>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list