Fix months in wp_title(). fixes #4043

git-svn-id: https://develop.svn.wordpress.org/trunk@5137 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
rob1n 2007-03-29 02:06:16 +00:00
parent fcb2f9db91
commit 3b6010f155
1 changed files with 1 additions and 1 deletions

View File

@ -201,7 +201,7 @@ function wp_title($sep = '»', $display = true) {
// If there's a month // If there's a month
if ( !empty($m) ) { if ( !empty($m) ) {
$my_year = substr($m, 0, 4); $my_year = substr($m, 0, 4);
$my_month = $wp_locale->get_month($m); $my_month = $wp_locale->get_month(substr($m, 4, 2));
$my_day = intval(substr($m, 6, 2)); $my_day = intval(substr($m, 6, 2));
$title = "$my_year" . ($my_month ? "$sep $my_month" : "") . ($my_day ? "$sep $my_day" : ""); $title = "$my_year" . ($my_month ? "$sep $my_month" : "") . ($my_day ? "$sep $my_day" : "");
} }