WordPress.org

Make WordPress Core

Changeset 25889 for trunk/src


Ignore:
Timestamp:
10/23/2013 08:54:22 PM (8 years ago)
Author:
nacin
Message:

Avoid notice with search feeds.

fixes #25677.

File:
1 edited

Legend:

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

    r25867 r25889  
    26302630        if ( ! empty( $q['s'] ) ) {
    26312631            $search_orderby = '';
    2632             if ( ! empty( $q['search_orderby_title'] ) && ( empty( $q['orderby'] ) && ! $this->is_feed ) || 'relevance' === $q['orderby'] )
     2632            if ( ! empty( $q['search_orderby_title'] ) && ( empty( $q['orderby'] ) && ! $this->is_feed ) || ( isset( $q['orderby'] ) && 'relevance' === $q['orderby'] ) )
    26332633                $search_orderby = $this->parse_search_order( $q );
    26342634
Note: See TracChangeset for help on using the changeset viewer.