Don't descend into single post title for the home page. see #3805
git-svn-id: http://svn.automattic.com/wordpress/trunk@9486 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
9c89c4af8c
commit
e11ee489f1
|
@ -432,7 +432,7 @@ function wp_title($sep = '»', $display = true, $seplocation = '') {
|
||||||
}
|
}
|
||||||
|
|
||||||
// If there is a post
|
// If there is a post
|
||||||
if ( ( is_single() || is_page() || is_home() ) && !( is_front_page() && is_page() ) ) {
|
if ( is_single() || ( is_page() && !is_front_page() ) ) {
|
||||||
$post = $wp_query->get_queried_object();
|
$post = $wp_query->get_queried_object();
|
||||||
$title = strip_tags( apply_filters( 'single_post_title', $post->post_title ) );
|
$title = strip_tags( apply_filters( 'single_post_title', $post->post_title ) );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue