Make WordPress Core

Opened 10 years ago

Closed 10 years ago

#8136 closed defect (bug) (fixed)

Avoid %d for formatted numbers

Reported by: nbachiyski Owned by:
Milestone: 2.7 Priority: normal
Severity: normal Version:
Component: General Keywords:
Focuses: Cc:


Do not use %d for numbers, passed through number_format(). If greater than 1000, it won't be a valid number and the template will break.

Attachments (1)

avoid-percent-d.diff (3.8 KB) - added by nbachiyski 10 years ago.

Download all attachments as: .zip

Change History (2)

#1 @ryan
10 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [9591]) Use %s, not %d, for number format output. Props nbachiyski. fixes #8136

Note: See TracTickets for help on using tickets.