Make WordPress Core

Ticket #41505: number_format_l18n.41505.diff

File number_format_l18n.41505.diff, 555 bytes (added by alpipego, 8 years ago)
  • src/wp-includes/functions.php

    diff --git src/wp-includes/functions.php src/wp-includes/functions.php
    index f5d7d8158c..58720cc351 100644
    function number_format_i18n( $number, $decimals = 0 ) { 
    229229         * @since  2.8.0
    230230         *
    231231         * @param string $formatted Converted number in string format.
     232         * @param int $decimals Precision of the number of decimal places
    232233         */
    233         return apply_filters( 'number_format_i18n', $formatted );
     234        return apply_filters( 'number_format_i18n', $formatted, $decimals );
    234235}
    235236
    236237/**