[wp-trac] Re: [WordPress Trac] #6848: is_front_page() and is_home() erroneously returns true on /blog/page/2 and so forth

WordPress Trac wp-trac at lists.automattic.com
Sat Apr 26 11:38:49 GMT 2008


#6848: is_front_page() and is_home() erroneously returns true on /blog/page/2 and
so forth
-----------------------------------------------+----------------------------
 Reporter:  Pinoy.ca                           |        Owner:  anonymous
     Type:  defect                             |       Status:  new      
 Priority:  normal                             |    Milestone:  2.5.2    
Component:  Template                           |      Version:  2.5      
 Severity:  normal                             |   Resolution:           
 Keywords:  is_front_page is_home 2nd-opinion  |  
-----------------------------------------------+----------------------------
Comment (by Denis-de-Bernardy):

 I think it should stay as it is now.

 is_home() should return true on paged pages since it really means
 is_blog().

 the case for is_front_page() is probably worth discussing, but you can
 always add a !is_paged() call if you only want to be showing your stuff on
 the site's "true" front page.

 D.

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


More information about the wp-trac mailing list