Fix display of titles for front pages. Props sivel. fixes #9288

git-svn-id: http://svn.automattic.com/wordpress/trunk@11395 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2009-05-19 15:48:47 +00:00
parent 46c5f5b84c
commit 0e7c7e8657

View File

@ -455,7 +455,7 @@ function wp_title($sep = '»', $display = true, $seplocation = '') {
}
// If there is a post
if ( is_single() || ( is_page() && !is_front_page() ) ) {
if ( is_single() || ( is_home() && !is_front_page() ) || ( is_page() && !is_front_page() ) ) {
$post = $wp_query->get_queried_object();
$title = strip_tags( apply_filters( 'single_post_title', $post->post_title ) );
}