Make WordPress Core


Ignore:
Timestamp:
11/26/2013 02:24:25 AM (10 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-theme-install-list-table.php

    r26317 r26380  
    342342            <?php endif; ?>
    343343            <div class="theme-details">
    344                 <div class="star-holder" title="<?php echo esc_attr( $num_ratings ); ?>">
    345                     <div class="star-rating" style="width:<?php echo esc_attr( intval( $theme->rating ) . 'px' ); ?>;"></div>
    346                 </div>
     344                <?php wp_star_rating( array( 'rating' => $theme->rating, 'type' => 'percent', 'number' => $theme->num_ratings ) ); ?>
    347345                <div class="theme-version">
    348346                    <strong><?php _e('Version:') ?> </strong>
Note: See TracChangeset for help on using the changeset viewer.