From 3b6010f155ae8e5221ffb7b8eb447a8934bfdb3f Mon Sep 17 00:00:00 2001 From: rob1n Date: Thu, 29 Mar 2007 02:06:16 +0000 Subject: [PATCH] Fix months in wp_title(). fixes #4043 git-svn-id: https://develop.svn.wordpress.org/trunk@5137 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/general-template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/general-template.php b/wp-includes/general-template.php index b5c71d7ad1..29f99d3e3e 100644 --- a/wp-includes/general-template.php +++ b/wp-includes/general-template.php @@ -201,7 +201,7 @@ function wp_title($sep = '»', $display = true) { // If there's a month if ( !empty($m) ) { $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)); $title = "$my_year" . ($my_month ? "$sep $my_month" : "") . ($my_day ? "$sep $my_day" : ""); }