mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Allow search in archive pages. Fixes #14831
git-svn-id: https://develop.svn.wordpress.org/trunk@15687 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user