mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Fix for single_month_title - http://mosquito.wordpress.org/view.php?id=867
git-svn-id: https://develop.svn.wordpress.org/trunk@2327 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user