WordPress.org

Making WordPress.org


Ignore:
Timestamp:
03/06/2015 08:45:23 AM (4 years ago)
Author:
obenland
Message:

WP.org Themes: Add last_updated and theme_url to single themes.

Is in need of a design upgrade.

See #908, #953.

File:
1 edited

Legend:

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

    r1375 r1383  
    3939    wp_enqueue_style( 'ratings', '//wordpress.org/extend/themes-plugins/bb-ratings/bb-ratings.css', array(), '4' );
    4040    wp_enqueue_style( 'themes-style', self_admin_url( 'css/themes.css' ) );
    41     wp_enqueue_style( 'wporg-themes-style', get_stylesheet_uri() );
     41    wp_enqueue_style( 'wporg-themes-style', get_stylesheet_uri(), array(), filemtime( __DIR__ . '/style.css' ) );
    4242
    4343    wp_enqueue_script( 'google-jsapi', '//www.google.com/jsapi', array( 'jquery' ), null );
     
    136136        'num_ratings'  => true,
    137137        'parent'       => true,
     138        'theme_url'    => true,
    138139    ) );
    139140
     
    173174    if ( in_array( $action, array( 'query_themes', 'theme_information' ) ) ) {
    174175        $args->per_page = 30;
    175         $args->fields['parent']  = true;
    176         $args->fields['ratings'] = true;
    177         $args->fields['tags']    = true;
     176        $args->fields['parent']    = true;
     177        $args->fields['ratings']   = true;
     178        $args->fields['tags']      = true;
     179        $args->fields['theme_url'] = true;
    178180    }
    179181
     
    209211        'num_ratings'  => true,
    210212        'parent'       => true,
     213        'theme_url'    => true,
    211214    ) );
    212215    $args = wp_parse_args( $request, array(
     
    247250        'num_ratings'  => true,
    248251        'parent'       => true,
     252        'theme_url'    => true,
    249253    ) );
    250254
Note: See TracChangeset for help on using the changeset viewer.