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

WordPress Trac wp-trac at lists.automattic.com
Mon Feb 26 02:54:37 GMT 2007


#3682: is_home() returns FALSE when using a static page as your front page
--------------------------------------+-------------------------------------
 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 andy):

 I would prefer not to have two meanings for "home". The original meaning,
 the one in the option called "home", is the URL of the front page of the
 blog. The original is_home() worked on that basis. So please let's keep
 is_home() consistent with the "home" option. Its logic might even be
 simplified: is REQUEST_URI equivalent to the path component of the "home"
 option?

 What we need is a function that detects whether we're displaying the first
 page of the blog's posts. It needs a name. The logic can test the
 emptiness of certain query_vars and/or other is_*.

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


More information about the wp-trac mailing list