Making WordPress.org


Ignore:
Timestamp:
04/27/2016 08:08:11 AM (10 years ago)
Author:
dd32
Message:

Plugin Directory: Add a REST API endpoint which represents the full plugin data currently exposed through api.wordpress.org.
Although it's unlikely api.wordpress.org will run the API directly, this is a test to verify that all data we have on file is available.

See #1576

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/widgets/class-ratings.php

    r3012 r3020  
    8989                var $rating = $( '.user-rating div' ),
    9090                    $stars = $rating.find( '.dashicons' ),
    91                     current_rating = $rating.data('rating'),
     91                    current_rating = $rating.data( 'rating' ),
    9292                    rating_clear_timer = 0;
    9393
     
    9999
    100100                    if ( rating_clear_timer ) {
    101                         rating_clear_timer = clearTimeout( rating_clear_timer );
     101                        clearTimeout( rating_clear_timer );
     102                        rating_clear_timer = 0;
    102103                    }
    103104
     
    115116                $rating.mouseout( function() {
    116117                    var clear_callback = function() {
    117                         var rating = $rating.data('rating');
     118                        var rating = $rating.data( 'rating' );
    118119                        if ( rating == current_rating ) {
    119120                            return;
Note: See TracChangeset for help on using the changeset viewer.