WordPress 3.8
[autoinstalls/wordpress.git] / wp-admin / includes / plugin-install.php
index 58a9e9bab70e6468871ae19ba9c7a91c1ce7e1a2..37d862e0f5770ded6d7f4db9463d76d2f77a1ff8 100644 (file)
@@ -413,9 +413,7 @@ function install_plugin_information() {
                </ul>
                <?php if ( ! empty($api->rating) ) : ?>
                <h2><?php _e('Average Rating') ?></h2>
-               <div class="star-holder" title="<?php printf(_n('(based on %s rating)', '(based on %s ratings)', $api->num_ratings), number_format_i18n($api->num_ratings)); ?>">
-                       <div class="star star-rating" style="width: <?php echo esc_attr( str_replace( ',', '.', $api->rating ) ); ?>px"></div>
-               </div>
+               <?php wp_star_rating( array( 'rating' => $api->rating, 'type' => 'percent', 'number' => $api->num_ratings ) ); ?>
                <small><?php printf(_n('(based on %s rating)', '(based on %s ratings)', $api->num_ratings), number_format_i18n($api->num_ratings)); ?></small>
                <?php endif; ?>
        </div>