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:
scribu 2010-10-02 22:52:15 +00:00
parent 688f990cd0
commit 2bfd821b9b
1 changed files with 5 additions and 3 deletions

View File

@ -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;