[wp-trac] Re: [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 Feb 23 10:14:18 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:  reopened 
 Priority:  high                      |    Milestone:  2.2      
Component:  Template                  |      Version:  2.1      
 Severity:  normal                    |   Resolution:           
 Keywords:  dev-feedback 2nd-opinion  |  
--------------------------------------+-------------------------------------
Comment (by markjaquith):

 I see two solutions:

  * make {{{is_home()}}} represent whatever is on the front page, and then
 introduce {{{is_blog_home()}}} for differentiation
  * keep {{{is_home()}}} as representing the blog view, and create
 {{{is_front_page()}}} to represent all front page situations for
 differentiation

 Second solution results in fewer issues with older themes.  First solution
 is more elegant and less verbally confusing.  I could go either way.  But
 either way, we need to pick something.  Start weighing in and lets make a
 decision.

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


More information about the wp-trac mailing list