WordPress.org

Make WordPress Core

Changeset 14192


Ignore:
Timestamp:
04/23/10 06:05:07 (5 years ago)
Author:
nbachiyski
Message:

Do not force formatted number to int. Props brentes, fixes #10555

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/functions.php

    r14190 r14192  
    137137function number_format_i18n( $number, $decimals = 0 ) { 
    138138    global $wp_locale; 
    139     $number = (int)$number; 
    140139    $formatted = number_format( $number, absint( $decimals ), $wp_locale->number_format['decimal_point'], $wp_locale->number_format['thousands_sep'] ); 
    141140    return apply_filters( 'number_format_i18n', $formatted ); 
Note: See TracChangeset for help on using the changeset viewer.