Wrong line
git-svn-id: http://svn.automattic.com/wordpress/trunk@2344 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
a834f4b221
commit
18aaa8b406
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue