mirror of
https://github.com/WordPress/WordPress.git
synced 2024-06-22 04:45:03 +02:00
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) {
|
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;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user