Don't descend into single post title for the home page. see #3805

git-svn-id: https://develop.svn.wordpress.org/trunk@9486 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2008-11-03 06:22:36 +00:00
parent 2ed35e776e
commit 9c1e9910e0
1 changed files with 1 additions and 1 deletions

View File

@ -432,7 +432,7 @@ function wp_title($sep = '»', $display = true, $seplocation = '') {
}
// 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();
$title = strip_tags( apply_filters( 'single_post_title', $post->post_title ) );
}