WordPress.org

Make WordPress Core

Opened 7 years ago

Closed 7 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:

Description

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 7 years ago.

Download all attachments as: .zip

Change History (2)

@nbachiyski7 years ago

comment:1 @ryan7 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.