Making WordPress.org


Ignore:
Timestamp:
01/05/2015 11:14:57 PM (9 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/functions.php

    r1084 r1087  
    7474
    7575    wp_enqueue_style( 'global-style', '//s.w.org/style/wp4.css', array(), '14' );
     76    wp_enqueue_style( 'ratings', '//wordpress.org/extend/themes-plugins/bb-ratings/bb-ratings.css', array(), '4' );
    7677    wp_enqueue_style( 'themes-style', self_admin_url( 'css/themes.css' ) );
    7778    wp_enqueue_style( 'wporg-themes-style', get_stylesheet_uri() );
     
    154155    if ( 'query_themes' == $action ) {
    155156        $args->per_page = 30;
    156         $args->fields['parent'] = true;
    157         $args->fields['tags']   = true;
     157        $args->fields['parent']  = true;
     158        $args->fields['ratings'] = true;
     159        $args->fields['tags']    = true;
    158160    }
    159161
Note: See TracChangeset for help on using the changeset viewer.