Make WordPress Core

Changeset 28668


Ignore:
Timestamp:
06/04/2014 11:46:39 PM (10 years ago)
Author:
SergeyBiryukov
Message:

Move is_admin check to a more appropriate place.

see #11330.

File:
1 edited

Legend:

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

    r28667 r28668  
    15131513            // Look for archive queries. Dates, categories, authors, search, post type archives.
    15141514
    1515             if ( ! is_admin() & isset( $this->query['s'] ) ) {
     1515            if ( isset( $this->query['s'] ) ) {
    15161516                $this->is_search = true;
    15171517            }
     
    24832483        if ( ! empty( $q['s'] ) ) {
    24842484            $search = $this->parse_search( $q );
    2485         } elseif ( $this->is_search ) {
     2485        } elseif ( ! $this->is_admin && $this->is_search ) {
    24862486            $search = ' AND 0';
    24872487        }
Note: See TracChangeset for help on using the changeset viewer.