Make WordPress Core


Ignore:
Timestamp:
01/19/2016 02:54:28 AM (8 years ago)
Author:
boonebgorges
Message:

Ignore false values of 'search' in WP_Comment_Query.

Props danielbachhuber.
Fixes #35513.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-comment-query.php

    r36327 r36345  
    746746        }
    747747
    748         if ( '' !== $this->query_vars['search'] ) {
     748        // Falsy search strings are ignored.
     749        if ( strlen( $this->query_vars['search'] ) ) {
    749750            $search_sql = $this->get_search_sql(
    750751                $this->query_vars['search'],
Note: See TracChangeset for help on using the changeset viewer.