[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
Tue Feb 3 00:28:42 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 DD32):

 Thats exactly the thing.. It IS the front page, A Static frontpage is the
 front page, So are its paged components.. They're part of the front page.

 is_archive() IS a special template tag, just as much as is_front_page(),
 is_front_page() was introduced to tell a static page apart from a posts-
 home-page, And thats all, Not for the very first page of the static page..

 If you're using a paged static page as your front page, AND you want to
 modify only the first page of it, You know you want to exclude it via
 is_paged() - exactly what you're doing..

 Thats just my opinion.. And i dont see the point in changing it since its
 been this way since the start..

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


More information about the wp-trac mailing list