[wp-trac] [WordPress Trac] #3682: is_home() returns FALSE when using a static page as your front page, should return TRUE

WordPress Trac wp-trac at lists.automattic.com
Fri Jan 26 04:50:56 GMT 2007


#3682: is_home() returns FALSE when using a static page as your front page, should
return TRUE
-------------------------+--------------------------------------------------
 Reporter:  johnbillion  |       Owner:  anonymous
     Type:  defect       |      Status:  new      
 Priority:  high         |   Milestone:  2.1.1    
Component:  Template     |     Version:  2.1      
 Severity:  normal       |    Keywords:  is_home  
-------------------------+--------------------------------------------------
 When a static page is being used as the front page of your blog, the
 is_home() function returns true instead of the desired false.

 To recreate:

 1. Go to Options -> Reading in your admin panel.

 2. Choose a static page to use as your front page.

 4. Insert a simple is_home() test in your template.

 4. Observe the result of the is_home() function is false instead of true.

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


More information about the wp-trac mailing list