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/view-templates/theme-preview.php

    r1336 r1374  
    2222                        <span class="five"></span>
    2323
    24                         <# if ( data.num_ratings ) { #>
    25                         <small class="ratings"><?php printf( __( '(based on %s ratings).', 'wporg-themes' ), '{{ data.num_ratings }}' ); ?></small>
     24                        <# if ( data.num_ratings > 0 ) { #>
     25                        <small class="ratings">{{ data.rating_text }}</small>
    2626                        <# } else { #>
    2727                        <small class="ratings"><?php _e( 'No ratings.' ); ?></small>
Note: See TracChangeset for help on using the changeset viewer.