WordPress.org

Making WordPress.org


Ignore:
Timestamp:
03/04/2015 03:28:36 AM (7 years ago)
Author:
obenland
Message:

WP.org Themes: Add a plural form when a theme has ratings.

Fixes #886.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/functions.php

    r1368 r1374  
    247247    $theme->description = wp_kses( $theme->description, $themes_allowedtags );
    248248    $theme->downloaded  = number_format_i18n( $theme->downloaded );
     249    $theme->rating_text = sprintf( _n( '(based on %s rating)', '(based on %s ratings)', $theme->num_ratings ), number_format_i18n( $theme->num_ratings ) );
    249250    $theme->num_ratings = number_format_i18n( $theme->num_ratings );
    250251    $theme->preview_url = set_url_scheme( $theme->preview_url );
Note: See TracChangeset for help on using the changeset viewer.