Plugins: Use correct placeholder for the number of reviews.
`number_format_i18n()` returns a string, not an integer. See #35111. Fixes #36395. Built from https://develop.svn.wordpress.org/trunk@37156 git-svn-id: http://core.svn.wordpress.org/trunk@37122 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
72a544168a
commit
3067561bd7
|
@ -585,7 +585,7 @@ function install_plugin_information() {
|
||||||
// Avoid div-by-zero.
|
// Avoid div-by-zero.
|
||||||
$_rating = $api->num_ratings ? ( $ratecount / $api->num_ratings ) : 0;
|
$_rating = $api->num_ratings ? ( $ratecount / $api->num_ratings ) : 0;
|
||||||
/* translators: 1: number of stars (used to determine singular/plural), 2: number of reviews */
|
/* translators: 1: number of stars (used to determine singular/plural), 2: number of reviews */
|
||||||
$aria_label = esc_attr( sprintf( _n( 'Reviews with %1$d star: %2$d. Opens in a new window.', 'Reviews with %1$d stars: %2$d. Opens in a new window.', $key ),
|
$aria_label = esc_attr( sprintf( _n( 'Reviews with %1$d star: %2$s. Opens in a new window.', 'Reviews with %1$d stars: %2$s. Opens in a new window.', $key ),
|
||||||
$key,
|
$key,
|
||||||
number_format_i18n( $ratecount )
|
number_format_i18n( $ratecount )
|
||||||
) );
|
) );
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.5-RC1-37155';
|
$wp_version = '4.5-RC1-37156';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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