From 7ef7a98dd16c30e0055fcb56f624b3b509b5a71f Mon Sep 17 00:00:00 2001 From: "Dominik Schilling (ocean90)" Date: Sat, 2 Apr 2016 11:16:32 +0000 Subject: [PATCH] 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 --- src/wp-admin/includes/plugin-install.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-admin/includes/plugin-install.php b/src/wp-admin/includes/plugin-install.php index f07dc53341..b1727a279e 100644 --- a/src/wp-admin/includes/plugin-install.php +++ b/src/wp-admin/includes/plugin-install.php @@ -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 ) ) );