diff --git a/wp-includes/formatting.php b/wp-includes/formatting.php index 78cb2a3713..71dfc84071 100644 --- a/wp-includes/formatting.php +++ b/wp-includes/formatting.php @@ -2031,8 +2031,10 @@ function wp_sprintf_l($pattern, $args) { if ( count($args) == 1 ) $result .= $l['between_only_two'] . array_shift($args); // Loop when more than two args - while ( count($args) ) { + $i = count($args); + while ( $i ) { $arg = array_shift($args); + $i--; if ( $i == 1 ) $result .= $l['between_last_two'] . $arg; else