From cb7570b4ccfe6c896581e5a61eae51a5fbfce6f0 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: http://svn.automattic.com/wordpress/trunk@5137 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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 b5c71d7ad..29f99d3e3 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" : ""); }