WordPress.org

Make WordPress Core


Ignore:
Timestamp:
01/13/2016 04:36:54 AM (5 years ago)
Author:
boonebgorges
Message:

Support searching for '0' in WP_Query.

Props swissspidy.
See #31025.

File:
1 edited

Legend:

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

    r36251 r36278  
    27762776
    27772777        // If a search pattern is specified, load the posts that match.
    2778         if ( ! empty( $q['s'] ) ) {
     2778        if ( strlen( $q['s'] ) ) {
    27792779            $search = $this->parse_search( $q );
    27802780        }
Note: See TracChangeset for help on using the changeset viewer.