Do not force formatted number to int. Props brentes, fixes #10555
git-svn-id: http://svn.automattic.com/wordpress/trunk@14192 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
47699849f7
commit
bc5feeeeb6
|
@ -136,7 +136,6 @@ function date_i18n( $dateformatstring, $unixtimestamp = false, $gmt = false ) {
|
|||
*/
|
||||
function number_format_i18n( $number, $decimals = 0 ) {
|
||||
global $wp_locale;
|
||||
$number = (int)$number;
|
||||
$formatted = number_format( $number, absint( $decimals ), $wp_locale->number_format['decimal_point'], $wp_locale->number_format['thousands_sep'] );
|
||||
return apply_filters( 'number_format_i18n', $formatted );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue