From 9d6af24e2b05bca213bb6c023cc44b65dda8b398 Mon Sep 17 00:00:00 2001 From: Ryan Boren 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: https://develop.svn.wordpress.org/trunk@11394 602fd350-edb4-49c9-b593-d223f7449a82 --- 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;