Make WordPress Core

Changeset 37156


Ignore:
Timestamp:
04/02/2016 11:16:32 AM (9 years ago)
Author:
ocean90
Message:

Plugins: Use correct placeholder for the number of reviews.

number_format_i18n() returns a string, not an integer.

See #35111.
Fixes #36395.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/plugin-install.php

    r37155 r37156  
    586586                $_rating = $api->num_ratings ? ( $ratecount / $api->num_ratings ) : 0;
    587587                /* translators: 1: number of stars (used to determine singular/plural), 2: number of reviews */
    588                 $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 ),
     588                $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 ),
    589589                    $key,
    590590                    number_format_i18n( $ratecount )
Note: See TracChangeset for help on using the changeset viewer.