From 72701026227cafe9ef766c91680146abcf1cb48f Mon Sep 17 00:00:00 2001 From: rboren 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: http://svn.automattic.com/wordpress/trunk@973 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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'));