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:
parent
fda7688049
commit
103b1d9eac
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue