From fecb84777749b107b8b01eb20510a38a03a670be Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Fri, 12 Mar 2004 03:36:16 +0000 Subject: [PATCH] Fix call to zeroise() in get_calendar(). Courtesy of harpshot. http://wordpress.org/support/6/3218 git-svn-id: https://develop.svn.wordpress.org/trunk@973 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 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'));