From 9c1e9910e06e10b4d9ba3b6ba585f12752921564 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Mon, 3 Nov 2008 06:22:36 +0000 Subject: [PATCH] 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 --- wp-includes/general-template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/general-template.php b/wp-includes/general-template.php index a7d93980e5..9c6a664bf0 100644 --- a/wp-includes/general-template.php +++ b/wp-includes/general-template.php @@ -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 ) ); }