Plugins: Use correct placeholder for the number of reviews.
`number_format_i18n()` returns a string, not an integer. See #35111. Fixes #36395. git-svn-id: https://develop.svn.wordpress.org/trunk@37156 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
6bf0509046
commit
7ef7a98dd1
@ -585,7 +585,7 @@ function install_plugin_information() {
|
||||
// Avoid div-by-zero.
|
||||
$_rating = $api->num_ratings ? ( $ratecount / $api->num_ratings ) : 0;
|
||||
/* 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,
|
||||
number_format_i18n( $ratecount )
|
||||
) );
|
||||
|
Loading…
Reference in New Issue
Block a user