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
This commit is contained in:
ryan 2009-05-19 15:36:01 +00:00
parent 6037ecb9a7
commit 46c5f5b84c
1 changed files with 1 additions and 1 deletions

View File

@ -2480,7 +2480,7 @@ function wp_sprintf_l($pattern, $args) {
while ( $i ) { while ( $i ) {
$arg = array_shift($args); $arg = array_shift($args);
$i--; $i--;
if ( $i == 1 ) if ( 0 == $i )
$result .= $l['between_last_two'] . $arg; $result .= $l['between_last_two'] . $arg;
else else
$result .= $l['between'] . $arg; $result .= $l['between'] . $arg;