[wp-trac] Re: [WordPress Trac] #9221: wp_title not working for front page

WordPress Trac wp-trac at lists.automattic.com
Thu Feb 26 22:17:47 GMT 2009

#9221: wp_title not working for front page
 Reporter:  thomask       |       Owner:  anonymous 
     Type:  defect (bug)  |      Status:  new       
 Priority:  high          |   Milestone:  Unassigned
Component:  General       |     Version:  2.7.1     
 Severity:  trivial       |    Keywords:  wp_title  

Comment(by FFEMTcJ):

 Text from #9222:

 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/9221#comment:1>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software

More information about the wp-trac mailing list