From 7d84b75d724e645d51ec7136fb219bfa384afbde Mon Sep 17 00:00:00 2001 From: wpmuguru Date: Fri, 11 Jun 2010 16:30:59 +0000 Subject: [PATCH] fix warning when page on front missing, see #13830 git-svn-id: http://svn.automattic.com/wordpress/trunk@15224 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 b3712425d9..6baf7b902a 100644 --- a/wp-includes/general-template.php +++ b/wp-includes/general-template.php @@ -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', $post->post_title ); + $title = apply_filters( 'single_post_title', empty( $post->post_title ) ? '' : $post->post_title ); } // If there's a taxonomy