[wp-trac] Re: [WordPress Trac] #6801: Should have a template file
for front page
WordPress Trac
wp-trac at lists.automattic.com
Sun Jun 14 15:47:29 GMT 2009
#6801: Should have a template file for front page
---------------------------+------------------------------------------------
Reporter: AaronCampbell | Owner: anonymous
Type: enhancement | Status: reopened
Priority: normal | Milestone: 2.9
Component: Template | Version:
Severity: normal | Resolution:
Keywords: needs-patch |
---------------------------+------------------------------------------------
Comment(by aaroncampbell):
Denis: This was written before your reply:
6801.005.diff is the latest patch based off the current trunk.
I looked into is_front_page, and it returns true if show_on_front is
'posts' and is_home is true. However, that seems a little redundant
unless some plugin is messing with it, because in query.php starting at
line 1460 is_home is set to false if show_on_front == 'page'
The patch adds a check for is_front_page AFTER the is_home check. This
means that if the blog page is the front page it checks for home.php ->
custom template -> front-page.php -> page.php -> index.php. If the front
page is a static page, it checks custom template -> front-page.php ->
page.php -> index.php.
I think that makes sense.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/6801#comment:28>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list