Opened 16 years ago
Closed 16 years ago
#7653 closed defect (bug) (fixed)
Count in wp_sprintf_l() is used, but not defined.
Reported by: | jacobsantos | Owned by: | |
---|---|---|---|
Milestone: | 2.7 | Priority: | low |
Severity: | minor | Version: | 2.7 |
Component: | General | Keywords: | has-patch tested commit |
Focuses: | Cc: |
Description
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.
Attachments (2)
Change History (6)
Note: See
TracTickets for help on using
tickets.
defines variable based off of r8781.