From 9560feaebdf5f52a1a4c22fc8dce98864be98e9f Mon Sep 17 00:00:00 2001 From: westi Date: Sun, 26 Oct 2008 13:03:50 +0000 Subject: [PATCH] Better page titles when blog is not shown on the front page. Fixes #3805 props anderswc. git-svn-id: http://svn.automattic.com/wordpress/trunk@9355 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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 9f12975cfa..ca9f3b37d1 100644 --- a/wp-includes/general-template.php +++ b/wp-includes/general-template.php @@ -430,7 +430,7 @@ function wp_title($sep = '»', $display = true, $seplocation = '') { } // If there is a post - if ( is_single() || is_page() ) { + if ( ( is_single() || is_page() || is_home() ) && !( is_front_page() && is_page() ) ) { $post = $wp_query->get_queried_object(); $title = strip_tags( apply_filters( 'single_post_title', $post->post_title ) ); }