[wp-trac] [WordPress Trac] #25735: paginate_links runs number_format_i18n for the entire range of pages

WordPress Trac noreply at wordpress.org
Sun Oct 27 19:14:57 UTC 2013


#25735: paginate_links runs number_format_i18n for the entire range of pages
--------------------------+------------------------------
 Reporter:  johnpbloch    |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:  2.7
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+------------------------------

Comment (by johnpbloch):

 This is a bad ticket.

 To reproduce:

 Use `paginate_links` in such a way that it will not use the whole range of
 pages passed to it.

 Expected behavior: it will run `number_format_i18n()` only when the number
 is actually used.

 Actual behavior: it runs `number_format_i18n()` for all numbers regardless
 of whether they're used.

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


More information about the wp-trac mailing list