mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-10 09:31:54 +01:00
Avoid notice with search feeds.
fixes #25677. Built from https://develop.svn.wordpress.org/trunk@25889 git-svn-id: http://core.svn.wordpress.org/trunk@25801 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
5a92b17981
commit
77ca1f202a
@ -2629,7 +2629,7 @@ class WP_Query {
|
||||
// Order search results by relevance only when another "orderby" is not specified in the query.
|
||||
if ( ! empty( $q['s'] ) ) {
|
||||
$search_orderby = '';
|
||||
if ( ! empty( $q['search_orderby_title'] ) && ( empty( $q['orderby'] ) && ! $this->is_feed ) || 'relevance' === $q['orderby'] )
|
||||
if ( ! empty( $q['search_orderby_title'] ) && ( empty( $q['orderby'] ) && ! $this->is_feed ) || ( isset( $q['orderby'] ) && 'relevance' === $q['orderby'] ) )
|
||||
$search_orderby = $this->parse_search_order( $q );
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user