Make WordPress Core

Changeset 25668


Ignore:
Timestamp:
10/02/2013 09:04:36 PM (11 years ago)
Author:
nacin
Message:

Don't order feeds of search results by relevance.

Allow for orderby=relevance to explicitly request relevance.

fixes #7394.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/query.php

    r25659 r25668  
    26282628        if ( ! empty( $q['s'] ) ) {
    26292629            $search_orderby = '';
    2630             if ( ! empty( $q['search_orderby_title'] ) && empty( $q['orderby'] ) )
     2630            if ( ! empty( $q['search_orderby_title'] ) && ( empty( $q['orderby'] ) && ! $this->is_feed ) || 'relevance' === $q['orderby'] )
    26312631                $search_orderby = $this->parse_search_order( $q );
    26322632
Note: See TracChangeset for help on using the changeset viewer.