Remove unneeded quotes around vars. Props johnbillion. fixes #10245

git-svn-id: https://develop.svn.wordpress.org/trunk@12513 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2009-12-23 15:16:53 +00:00
parent 4aee2f753b
commit 6de4fcc190
12 changed files with 34 additions and 34 deletions
+4 -4
View File
@@ -467,15 +467,15 @@ function wp_title($sep = '»', $display = true, $seplocation = '') {
$my_year = substr($m, 0, 4);
$my_month = $wp_locale->get_month(substr($m, 4, 2));
$my_day = intval(substr($m, 6, 2));
$title = "$my_year" . ($my_month ? "$t_sep$my_month" : "") . ($my_day ? "$t_sep$my_day" : "");
$title = $my_year . ($my_month ? $t_sep . $my_month : "") . ($my_day ? $t_sep . $my_day : "");
}
if ( !empty($year) ) {
$title = $year;
if ( !empty($monthnum) )
$title .= "$t_sep" . $wp_locale->get_month($monthnum);
$title .= $t_sep . $wp_locale->get_month($monthnum);
if ( !empty($day) )
$title .= "$t_sep" . zeroise($day, 2);
$title .= $t_sep . zeroise($day, 2);
}
// If there is a post
@@ -491,7 +491,7 @@ function wp_title($sep = '»', $display = true, $seplocation = '') {
$tax = $tax->label;
$term = $wp_query->get_queried_object();
$term = $term->name;
$title = "$tax$t_sep$term";
$title = $tax . $t_sep . $term;
}
//If it's a search