Avoid notice with search feeds.
fixes #25677. git-svn-id: https://develop.svn.wordpress.org/trunk@25889 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
ed15997210
commit
a75c4a56a8
@ -2629,7 +2629,7 @@ class WP_Query {
|
|||||||
// Order search results by relevance only when another "orderby" is not specified in the query.
|
// Order search results by relevance only when another "orderby" is not specified in the query.
|
||||||
if ( ! empty( $q['s'] ) ) {
|
if ( ! empty( $q['s'] ) ) {
|
||||||
$search_orderby = '';
|
$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 );
|
$search_orderby = $this->parse_search_order( $q );
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user