WordPress.org

Make WordPress Core

Changeset 15687


Ignore:
Timestamp:
10/02/10 22:52:15 (4 years ago)
Author:
scribu
Message:

Allow search in archive pages. Fixes #14831

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/query.php

    r15686 r15687  
    12481248            $this->is_page = true; 
    12491249            $this->is_single = false; 
    1250         } elseif ( !empty($qv['s']) ) { 
    1251             $this->is_search = true; 
    12521250        } else { 
    1253         // Look for archive queries.  Dates, categories, authors. 
     1251        // Look for archive queries.  Dates, categories, authors, search. 
     1252 
     1253            if ( !empty($qv['s']) ) { 
     1254                $this->is_search = true; 
     1255            } 
    12541256 
    12551257            if ( '' !== $qv['second'] ) { 
Note: See TracChangeset for help on using the changeset viewer.