Changeset 3455
- Timestamp:
- 06/19/2016 09:42:59 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-plugin-directory.php
r3453 r3455 450 450 break; 451 451 452 case 'new': 452 453 case 'popular': 453 454 add_filter( 'posts_where', array( $this, 'pre_get_posts_sql_browse' ) ); … … 455 456 } 456 457 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'] ) ) { 458 459 $wp_query->query_vars['orderby'] = 'meta_value_num'; 459 460 $wp_query->query_vars['meta_key'] = '_active_installs';
Note: See TracChangeset
for help on using the changeset viewer.