[wp-trac] [WordPress Trac] #14355: is_front_page returns fasle - if used before the loop starts

WordPress Trac wp-trac at lists.automattic.com
Mon Jul 19 18:51:21 UTC 2010


#14355: is_front_page returns fasle - if used before the loop starts
-----------------------------+----------------------------------------------
 Reporter:  christian_gnoth  |       Owner:                                 
     Type:  defect (bug)     |      Status:  new                            
 Priority:  normal           |   Milestone:  Awaiting Review                
Component:  General          |     Version:  3.0                            
 Severity:  normal           |    Keywords:  is_front_page,loop,return false
-----------------------------+----------------------------------------------
 hello,
 I am using is_front_page() on different places in my theme template files.

 It returns for the front page and home page true if I call it inside the
 loop - if I call it before the loop starts ( if(have_posts()) ) it returns
 false for the front page. it also returns false if I call it in my
 functions.php file in a customized excerpt action hook.

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


More information about the wp-trac mailing list