git-svn-id: http://svn.automattic.com/wordpress/trunk@2327 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
saxmatt 2005-02-14 06:48:51 +00:00
parent 6b03f9b4a5
commit ab9fa0a56b
1 changed files with 1 additions and 1 deletions

View File

@ -224,7 +224,7 @@ function single_month_title($prefix = '', $display = true ) {
$my_month = $month[$monthnum]; $my_month = $month[$monthnum];
} elseif(!empty($m)) { } elseif(!empty($m)) {
$my_year = substr($m, 0, 4); $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) { if (!empty($my_month) && $display) {