[wp-trac] Re: [WordPress Trac] #6848: is_front_page() should only return true on the front page

WordPress Trac wp-trac at lists.automattic.com
Mon Feb 2 12:24:43 GMT 2009

#6848: is_front_page() should only return true on the front page
 Reporter:  Pinoy.ca                |        Owner:  anonymous
     Type:  defect (bug)            |       Status:  new      
 Priority:  normal                  |    Milestone:  2.7.1    
Component:  Template                |      Version:  2.5      
 Severity:  normal                  |   Resolution:           
 Keywords:  has-patch dev-feedback  |  
Comment (by Denis-de-Bernardy):

 Yeah, but it's a special template tag. As I understand things,
 is_front_page() was introduced to distinguish the static front page from
 the blog's front page.

 If I want to know if I'm browsing the blog page (whether it is on the
 front page or on pages that list previous posts), I'd use is_home() rather
 than is_front_page().

 One potential argument against the diff could if someone who inserts a
 paged static page on his front page; he might end up wishing that
 is_front_page() returned true. But everyone else would expect
 is_front_page() to return true on just that -- the site's front page.

 For me, either way works, provided I know what to expect... :-)

Ticket URL: <http://trac.wordpress.org/ticket/6848#comment:14>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software

More information about the wp-trac mailing list