From 28fb8817679f262cefad273654d8a75b7e002471 Mon Sep 17 00:00:00 2001 From: Matt Mullenweg Date: Tue, 15 Feb 2005 00:50:23 +0000 Subject: [PATCH] Wrong line git-svn-id: https://develop.svn.wordpress.org/trunk@2344 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/template-functions-general.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/template-functions-general.php b/wp-includes/template-functions-general.php index 91285c40e8..66716ebaf8 100644 --- a/wp-includes/template-functions-general.php +++ b/wp-includes/template-functions-general.php @@ -221,10 +221,10 @@ function single_month_title($prefix = '', $display = true ) { global $m, $monthnum, $month, $year; if(!empty($monthnum) && !empty($year)) { $my_year = $year; - $my_month = $month[$monthnum]; + $my_month = $month[str_pad($monthnum, 2, '0', STR_PAD_LEFT)]; } elseif(!empty($m)) { $my_year = substr($m, 0, 4); - $my_month = $month[str_pad($monthnum, 2, '0', STR_PAD_LEFT)]; + $my_month = $month[substr($m, 4, 2)]; } if (!empty($my_month) && $display) {