diff --git a/wp-includes/template-functions-general.php b/wp-includes/template-functions-general.php index 7471028bb7..8c4a3a6a86 100644 --- a/wp-includes/template-functions-general.php +++ b/wp-includes/template-functions-general.php @@ -340,7 +340,7 @@ function get_calendar($daylength = 1) { if (strlen($m) < 6) { $thismonth = '01'; } else { - $thismonth = ''.zeroise(intval(substr($m, 4, 2), 2)); + $thismonth = ''.zeroise(intval(substr($m, 4, 2)), 2); } } else { $thisyear = gmdate('Y', current_time('timestamp'));