Allow search in archive pages. Fixes #14831
git-svn-id: http://svn.automattic.com/wordpress/trunk@15687 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
688f990cd0
commit
2bfd821b9b
|
@ -1247,10 +1247,12 @@ class WP_Query {
|
|||
} elseif ( '' != $qv['static'] || '' != $qv['pagename'] || !empty($qv['page_id']) ) {
|
||||
$this->is_page = true;
|
||||
$this->is_single = false;
|
||||
} elseif ( !empty($qv['s']) ) {
|
||||
$this->is_search = true;
|
||||
} else {
|
||||
// Look for archive queries. Dates, categories, authors.
|
||||
// Look for archive queries. Dates, categories, authors, search.
|
||||
|
||||
if ( !empty($qv['s']) ) {
|
||||
$this->is_search = true;
|
||||
}
|
||||
|
||||
if ( '' !== $qv['second'] ) {
|
||||
$this->is_time = true;
|
||||
|
|
Loading…
Reference in New Issue