Make WordPress Core

Ticket #17299: 17299.patch

File 17299.patch, 674 bytes (added by SergeyBiryukov, 14 years ago)
  • wp-includes/functions.php

     
    152152 */
    153153function number_format_i18n( $number, $decimals = 0 ) {
    154154        global $wp_locale;
    155         $formatted = number_format( $number, absint( $decimals ), $wp_locale->number_format['decimal_point'], $wp_locale->number_format['thousands_sep'] );
     155        $formatted = number_format( (float) $number, absint( $decimals ), $wp_locale->number_format['decimal_point'], $wp_locale->number_format['thousands_sep'] );
    156156        return apply_filters( 'number_format_i18n', $formatted );
    157157}
    158158