• Filtering posts from the admin screen results in a database error. The code generates a bad SQL query. The source of the issue is line 278 in search-everything.php.

    The fix is changing this:

    if ( $searchQuery != '' ) {

    to this

    if ( $searchQuery != '' && $searchQuery != '()' ) {

    [Moderator note: code fixed. Please wrap code in the backtick character or use the code button.]

    An alternate solution might be to check for something in $terms before adding the hardcoded parenthesis.

    • This topic was modified 6 years, 11 months ago by bdbrown.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Database Error when Filtering Posts’ is closed to new replies.