Making WordPress.org


Ignore:
Timestamp:
06/19/2016 09:42:59 AM (8 years ago)
Author:
obenland
Message:

Plugin Directory: Re-create the list of newest plugins.

See #1584.

File:
1 edited

Legend:

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

    r3453 r3455  
    450450                break;
    451451
     452            case 'new':
    452453            case 'popular':
    453454                add_filter( 'posts_where', array( $this, 'pre_get_posts_sql_browse' ) );
     
    455456        }
    456457
    457         if ( $wp_query->is_archive() && empty( $wp_query->query_vars['orderby'] ) ) {
     458        if ( $wp_query->is_archive() && ! $wp_query->is_tax( 'plugin_section', 'new' ) && empty( $wp_query->query_vars['orderby'] ) ) {
    458459            $wp_query->query_vars['orderby']  = 'meta_value_num';
    459460            $wp_query->query_vars['meta_key'] = '_active_installs';
Note: See TracChangeset for help on using the changeset viewer.