From 46c5f5b84c342dcb5eda149e7a84329427a22d6d Mon Sep 17 00:00:00 2001 From: ryan Date: Tue, 19 May 2009 15:36:01 +0000 Subject: [PATCH] Fix item count in wp_sprintf_l(). Props abelcheung. fixes #9847 git-svn-id: http://svn.automattic.com/wordpress/trunk@11394 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/formatting.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/formatting.php b/wp-includes/formatting.php index b67be0fc9e..9b44ec5772 100644 --- a/wp-includes/formatting.php +++ b/wp-includes/formatting.php @@ -2480,7 +2480,7 @@ function wp_sprintf_l($pattern, $args) { while ( $i ) { $arg = array_shift($args); $i--; - if ( $i == 1 ) + if ( 0 == $i ) $result .= $l['between_last_two'] . $arg; else $result .= $l['between'] . $arg;