Make WordPress Core

Changeset 28804


Ignore:
Timestamp:
06/23/2014 01:33:39 PM (10 years ago)
Author:
SergeyBiryukov
Message:

Don't kill an empty search query.

see #11330.

File:
1 edited

Legend:

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

    r28803 r28804  
    24732473        if ( ! empty( $q['s'] ) ) {
    24742474            $search = $this->parse_search( $q );
    2475         } elseif ( ! $this->is_admin && $this->is_search ) {
    2476             $search = ' AND 0';
    24772475        }
    24782476
Note: See TracChangeset for help on using the changeset viewer.