Make WordPress Core

Ticket #7753: 7753.2.diff

File 7753.2.diff, 772 bytes (added by Denis-de-Bernardy, 16 years ago)

fix number_format only

  • wp-includes/functions.php

     
    140140        // let the user override the precision only
    141141        $decimals = ( is_null( $decimals ) ) ? $wp_locale->number_format['decimals'] : intval( $decimals );
    142142
    143         return number_format( $number, $decimals, $wp_locale->number_format['decimal_point'], $wp_locale->number_format['thousands_sep'] );
     143  $num = number_format( $number, $decimals, $wp_locale->number_format['decimal_point'], $wp_locale->number_format['thousands_sep'] );
     144 
     145  // let the user translate digits from latin to localized language
     146  return apply_filters( 'number_format_i18n', $num );
    144147}
    145148
    146149/**