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
This commit is contained in:
westi 2008-10-26 13:03:50 +00:00
parent 11aaba8bc1
commit 9560feaebd
1 changed files with 1 additions and 1 deletions

View File

@ -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 ) );
}