Better page titles when blog is not shown on the front page. Fixes #3805 props anderswc.
git-svn-id: https://develop.svn.wordpress.org/trunk@9355 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
9b7f72b42f
commit
2f9e6bd6b3
@ -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 ) );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user