wp_title() fixes from dwc. fixes #3967

git-svn-id: http://svn.automattic.com/wordpress/branches/2.0@5035 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2007-03-14 01:53:35 +00:00
parent fda7688049
commit 103b1d9eac

View File

@ -137,7 +137,7 @@ function get_bloginfo($show='') {
function wp_title($sep = '»', $display = true) { function wp_title($sep = '»', $display = true) {
global $wpdb, $month; global $wpdb, $posts, $month;
$cat = get_query_var('cat'); $cat = get_query_var('cat');
$p = get_query_var('p'); $p = get_query_var('p');
@ -200,7 +200,7 @@ function wp_title($sep = '»', $display = true) {
} }
$prefix = ''; $prefix = '';
if ( isset($title) ) if ( !empty($title) )
$prefix = " $sep "; $prefix = " $sep ";
$title = $prefix . $title; $title = $prefix . $title;