diff --git a/wp-includes/template-functions-general.php b/wp-includes/template-functions-general.php index 615442cc20..bc7ee04d2d 100644 --- a/wp-includes/template-functions-general.php +++ b/wp-includes/template-functions-general.php @@ -137,7 +137,7 @@ function get_bloginfo($show='') { function wp_title($sep = '»', $display = true) { - global $wpdb, $month; + global $wpdb, $posts, $month; $cat = get_query_var('cat'); $p = get_query_var('p'); @@ -200,7 +200,7 @@ function wp_title($sep = '»', $display = true) { } $prefix = ''; - if ( isset($title) ) + if ( !empty($title) ) $prefix = " $sep "; $title = $prefix . $title;