From 2d74b18bea6fad8ffa8af9b328cfb75af55261e2 Mon Sep 17 00:00:00 2001 From: Boone Gorges Date: Wed, 13 Jan 2016 04:37:25 +0000 Subject: [PATCH] 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 --- wp-includes/query.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/query.php b/wp-includes/query.php index 3703428d95..44e9a5c242 100644 --- a/wp-includes/query.php +++ b/wp-includes/query.php @@ -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 ); } diff --git a/wp-includes/version.php b/wp-includes/version.php index 9e2f12cb92..f1921ec6e9 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @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.