From ab9fa0a56b0741e7df108da5d7e9df63055dfbd8 Mon Sep 17 00:00:00 2001 From: saxmatt Date: Mon, 14 Feb 2005 06:48:51 +0000 Subject: [PATCH] Fix for single_month_title - http://mosquito.wordpress.org/view.php?id=867 git-svn-id: http://svn.automattic.com/wordpress/trunk@2327 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/template-functions-general.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/template-functions-general.php b/wp-includes/template-functions-general.php index 9c16d0e9f9..91285c40e8 100644 --- a/wp-includes/template-functions-general.php +++ b/wp-includes/template-functions-general.php @@ -224,7 +224,7 @@ function single_month_title($prefix = '', $display = true ) { $my_month = $month[$monthnum]; } elseif(!empty($m)) { $my_year = substr($m, 0, 4); - $my_month = $month[substr($m, 4, 2)]; + $my_month = $month[str_pad($monthnum, 2, '0', STR_PAD_LEFT)]; } if (!empty($my_month) && $display) {