Count in wp_sprintf_l() is used, but not defined.
|Reported by:||jacobsantos||Owned by:|
|Component:||General||Keywords:||has-patch tested commit|
The function checks for the $i variable, which I assume is supposed to be from the count, but is never defined. The condition that uses that variable will always be false all cases. Patch defines the variable, which is hopefully what the developer had in mind.
The note about being greater than 2 items is not checked for and is another bug, I suspect. I suppose the intention is to have the remaining item appended after and break out of the loop, however the only check is a boolean, which is not suffice of a check to ensure this.