[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:54:39 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     |
--------------------------+----------------------

Comment (by nacin):

 Replying to [comment:1 johnbillion]:
 > 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`.

 `printf( '%d', '1,000' )` actually truncates to `1`, even worse.

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


More information about the wp-trac mailing list