Making WordPress.org


Ignore:
Timestamp:
01/05/2015 11:14:57 PM (10 years ago)
Author:
obenland
Message:

WP.org Themes: Repair ratings display in theme modal.

Gets the rating styles to display the star rating, requests rating
level information from the Themes API, and changes the data property
name to what the API will likely use.

See https://dotorg.trac.wordpress.org/ticket/20
See #745.

File:
1 edited

Legend:

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

    r1034 r1087  
    5959
    6060                    <?php
    61                         if ( $theme->lvl_ratings ) :
    62                             foreach ( $theme->lvl_ratings as $key => $rate_count ) :
     61                        if ( ! empty( $theme->ratings ) ) :
     62                            foreach ( $theme->ratings as $key => $rate_count ) :
    6363                    ?>
    6464                    <div class="counter-container">
Note: See TracChangeset for help on using the changeset viewer.