Making WordPress.org

Changeset 5697


Ignore:
Timestamp:
07/19/2017 04:10:23 PM (7 years ago)
Author:
coffee2code
Message:

Plugin Directory: Sort Beta plugins list by last updated.

Fixes #2805.

File:
1 edited

Legend:

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

    r5570 r5697  
    672672        // Set up custom queries for the /browse/ URLs
    673673        switch ( $wp_query->get( 'browse' ) ) {
     674            case 'beta':
     675                $wp_query->query_vars['meta_key'] = 'last_updated';
     676                $wp_query->query_vars['orderby']  = 'meta_value';
     677                $wp_query->query_vars['order']    = 'DESC';
     678                break;
    674679            case 'favorites':
    675680                $favorites_user = wp_get_current_user();
Note: See TracChangeset for help on using the changeset viewer.