[wp-trac] [WordPress Trac] #17550: if (is_home() || is_front_page()) not working correctly

WordPress Trac wp-trac at lists.automattic.com
Tue May 24 19:28:25 UTC 2011


#17550: if (is_home() || is_front_page()) not working correctly
--------------------------+---------------------------------
 Reporter:  webvitaly     |      Owner:  webvitaly@…
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  3.1.2
 Severity:  normal        |   Keywords:
--------------------------+---------------------------------
 I have "About" page - which is chosen as front page;
 and "News" page - which is chosen as posts page;
 I have such code:

 {{{
 if (is_home() || is_front_page()){
         echo '=output=';
 }
 }}}

 The string '=output=' prints on "About" and "News" page. But "News" page
 is not homepage and not front page. I think this is the bug.

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


More information about the wp-trac mailing list