[wp-trac] [WordPress Trac] #10555: number_format_i18n function doesn't check if the number is float or not before doing the formating

WordPress Trac wp-trac at lists.automattic.com
Thu Apr 22 15:50:47 UTC 2010


#10555: number_format_i18n function doesn't check if the number is float or not
before doing the formating
------------------------------------+---------------------------------------
 Reporter:  chombium                |        Owner:  nbachiyski
     Type:  defect (bug)            |       Status:  closed    
 Priority:  normal                  |    Milestone:  3.0       
Component:  i18n                    |      Version:  2.9       
 Severity:  normal                  |   Resolution:  fixed     
 Keywords:  has-patch dev-feedback  |  
------------------------------------+---------------------------------------

Comment(by brentes):

 I just updated to the latest and saw all the decimals in my plugin
 disappear.

 I understand everything in WP uses integers, but please consider that many
 plugins, including all that deal with currency, use floats.

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


More information about the wp-trac mailing list