[wp-trac] [WordPress Trac] #25568: Sprintf replacement specifiers for strings are used instead of integers

WordPress Trac noreply at wordpress.org
Fri Oct 11 16:49:36 UTC 2013


#25568: Sprintf replacement specifiers for strings are used instead of integers
--------------------------+----------------------
 Reporter:  Nao           |       Owner:
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  I18N          |     Version:  trunk
 Severity:  normal        |  Resolution:  invalid
 Keywords:  has-patch     |
--------------------------+----------------------
Changes (by johnbillion):

 * status:  new => closed
 * resolution:   => invalid
 * milestone:  Awaiting Review =>


Comment:

 The %s replacement specifier is used for number formatting purposes. The
 value passed in is not necessarily an integer. This is especially
 important with localisation, where the translation could be a word, a
 number with formatting, or a non-Latin numeral.

 As an example (albeit an unlikely one), you could delete 1,000 pages and
 the number would show up as `1000` with your patch rather than `1,000`.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/25568#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list