[wp-trac] [WordPress Trac] #17299: number_format_i18n improper calls

WordPress Trac wp-trac at lists.automattic.com
Mon May 2 03:16:08 UTC 2011


#17299: number_format_i18n improper calls
--------------------------+-----------------------------
 Reporter:  mhitza        |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:
 Severity:  trivial       |   Keywords:
--------------------------+-----------------------------
 I would recommend that in the number_format_i18n function instead of

 $formatted = number_format( $number, absint( $decimals ),
 $wp_locale->number_format['decimal_point'],
 $wp_locale->number_format['thousands_sep'] );

 Force a (double) typecast on the first parameter because somewhere the
 function is called with a string and it just fills the apache error log
 with warnings.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/17299>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list