mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-02 19:54:28 +00:00
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:
@@ -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 );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user