Support searching for '0' in WP_Query.

Props swissspidy.
See #31025.

git-svn-id: https://develop.svn.wordpress.org/trunk@36278 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Boone Gorges
2016-01-13 04:36:54 +00:00
parent bf2f6f8104
commit 0b564d48df
2 changed files with 23 additions and 1 deletions

View File

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