Support searching for '0' in WP_Query.

Props swissspidy.
See #31025.
Built from https://develop.svn.wordpress.org/trunk@36278


git-svn-id: http://core.svn.wordpress.org/trunk@36245 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Boone Gorges 2016-01-13 04:37:25 +00:00
parent 98fb5f0bdb
commit 2d74b18bea
2 changed files with 2 additions and 2 deletions

View File

@ -2775,7 +2775,7 @@ class WP_Query {
} }
// If a search pattern is specified, load the posts that match. // If a search pattern is specified, load the posts that match.
if ( ! empty( $q['s'] ) ) { if ( strlen( $q['s'] ) ) {
$search = $this->parse_search( $q ); $search = $this->parse_search( $q );
} }

View File

@ -4,7 +4,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '4.5-alpha-36277'; $wp_version = '4.5-alpha-36278';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.