Make WordPress Core


Ignore:
Timestamp:
11/26/2013 02:24:25 AM (11 years ago)
Author:
dd32
Message:

Replace the Star ratings in the dashboard with dashicons ratings.
This also moves the ratings to only displaying full, half, or empty stars (ie. 3.0, 3.5, 4.0, no 3.7 ratings - which are rounded).
Fixes #26170

File:
1 edited

Legend:

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

    r25630 r26380  
    271271            <td class="vers column-version"<?php echo $style['version']; ?>><?php echo $version; ?></td>
    272272            <td class="vers column-rating"<?php echo $style['rating']; ?>>
    273                 <div class="star-holder" title="<?php printf( _n( '(based on %s rating)', '(based on %s ratings)', $plugin['num_ratings'] ), number_format_i18n( $plugin['num_ratings'] ) ) ?>">
    274                     <div class="star star-rating" style="width: <?php echo esc_attr( str_replace( ',', '.', $plugin['rating'] ) ); ?>px"></div>
    275                 </div>
     273                <?php wp_star_rating( array( 'rating' => $plugin['rating'], 'type' => 'percent', 'number' => $plugin['num_ratings'] ) ); ?>
    276274            </td>
    277275            <td class="desc column-description"<?php echo $style['description']; ?>><?php echo $description, $author; ?></td>
Note: See TracChangeset for help on using the changeset viewer.