From 103b1d9eac3ebe965915ea612f8cc057e44b1db5 Mon Sep 17 00:00:00 2001 From: ryan Date: Wed, 14 Mar 2007 01:53:35 +0000 Subject: [PATCH] wp_title() fixes from dwc. fixes #3967 git-svn-id: http://svn.automattic.com/wordpress/branches/2.0@5035 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/template-functions-general.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;