Making WordPress.org

Changeset 5192


Ignore:
Timestamp:
03/29/2017 05:37:52 AM (8 years ago)
Author:
dd32
Message:

Plugin Directory: Sort favourites alphabetically.

See #1158

File:
1 edited

Legend:

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

    r5180 r5192  
    689689                    $wp_query->query_vars['favorites_user'] = $favorites_user->user_nicename;
    690690                    $wp_query->query_vars['post_name__in']  = get_user_meta( $favorites_user->ID, 'plugin_favorites', true );
     691
     692                    $wp_query->query_vars['orderby'] = 'post_title';
     693                    $wp_query->query_vars['order'] = 'ASC';
    691694                }
    692695
Note: See TracChangeset for help on using the changeset viewer.