[wp-trac] [WordPress Trac] #9222: bug with wp_title() on homepage

WordPress Trac wp-trac at lists.automattic.com
Mon Feb 23 21:37:22 GMT 2009


#9222: bug with wp_title() on homepage
--------------------------+-------------------------------------------------
 Reporter:  thomask       |       Owner:  anonymous 
     Type:  defect (bug)  |      Status:  new       
 Priority:  high          |   Milestone:  Unassigned
Component:  General       |     Version:  2.7.1     
 Severity:  trivial       |    Keywords:  wp_title  
--------------------------+-------------------------------------------------
 i have posted a bugreport that wp_title is not working on homepage for
 both static page and news page. I do not see it here, but i have probably
 found the problem

 in general-template.php, in wp_title function, row 435, there is
         if ( is_single() ||  ( is_page() && !is_front_page() ) ) {
 so the front page is explicitely excluded. And the problem is, that there
 is no definition for front page. So you should add definition for front
 page, or delete "&& !is_front_page()" part (but i do not know if it would
 work for front_page which is not Page)

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


More information about the wp-trac mailing list