Formatting: Add the `$number` and `$decimals` arguments to the `number_format_i18n` filter.
Props alpipego Fixes #41505 Built from https://develop.svn.wordpress.org/trunk@41199 git-svn-id: http://core.svn.wordpress.org/trunk@41039 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
7af3b92736
commit
ed60c36fb8
|
@ -226,11 +226,14 @@ function number_format_i18n( $number, $decimals = 0 ) {
|
||||||
/**
|
/**
|
||||||
* Filters the number formatted based on the locale.
|
* Filters the number formatted based on the locale.
|
||||||
*
|
*
|
||||||
* @since 2.8.0
|
* @since 2.8.0
|
||||||
|
* @since 4.9.0 The `$number` and `$decimals` arguments were added.
|
||||||
*
|
*
|
||||||
* @param string $formatted Converted number in string format.
|
* @param string $formatted Converted number in string format.
|
||||||
|
* @param float $number The number to convert based on locale.
|
||||||
|
* @param int $decimals Precision of the number of decimal places.
|
||||||
*/
|
*/
|
||||||
return apply_filters( 'number_format_i18n', $formatted );
|
return apply_filters( 'number_format_i18n', $formatted, $number, $decimals );
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.9-alpha-41198';
|
$wp_version = '4.9-alpha-41199';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue