Fix warnings related to static pages. props zeo for initial patch. fixes #13830.

git-svn-id: https://develop.svn.wordpress.org/trunk@15227 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin
2010-06-11 17:04:06 +00:00
parent 63389cff50
commit e45ec0a52c
4 changed files with 12 additions and 4 deletions

View File

@@ -585,7 +585,7 @@ function wp_title($sep = '»', $display = true, $seplocation = '') {
// If there is a post
if ( is_single() || ( is_home() && !is_front_page() ) || ( is_page() && !is_front_page() ) ) {
$post = $wp_query->get_queried_object();
$title = apply_filters( 'single_post_title', empty( $post->post_title ) ? '' : $post->post_title );
$title = apply_filters( 'single_post_title', $post->post_title );
}
// If there's a taxonomy