mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-04 18:01:42 +01:00
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:
parent
98fb5f0bdb
commit
2d74b18bea
@ -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 );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user