Making WordPress.org

Changeset 1335


Ignore:
Timestamp:
02/26/2015 04:18:37 AM (10 years ago)
Author:
obenland
Message:

WP.org Themes: Specify default fields that we always need.

they are defined in wp-admin/theme-install.php, so we need to define them here.

See #745.

File:
1 edited

Legend:

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

    r1324 r1335  
    142142 */
    143143function wporg_themes_query_themes() {
    144     global $theme_field_defaults, $themes_allowedtags;
    145 
    146144    $args = wp_parse_args( wp_unslash( $_REQUEST['request'] ), array(
    147145        'per_page' => 20,
    148         'fields'   => $theme_field_defaults,
     146        'fields'   => array(
     147            'description'  => true,
     148            'sections'     => false,
     149            'tested'       => true,
     150            'requires'     => true,
     151            'rating'       => true,
     152            'downloaded'   => true,
     153            'downloadlink' => true,
     154            'last_updated' => true,
     155            'homepage'     => true,
     156            'tags'         => true,
     157            'num_ratings'  => true,
     158        ),
    149159    ) );
    150160
Note: See TracChangeset for help on using the changeset viewer.