WordPress.org

Make WordPress Core

Changeset 28666


Ignore:
Timestamp:
06/04/2014 08:02:46 PM (6 years ago)
Author:
wonderboymusic
Message:

Prevent admin breakage for s in WP_Query after [28623].

See #11330.

File:
1 edited

Legend:

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

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