Search Query Bug fix
-
Hi,
I found a bug in the latest version of the plugin.
search-everything.php – line 278
if ( $searchQuery != '') { // lets use _OUR_ query instead of WP's, as we have posts already included in our query as well(assuming it's not empty which we check for) $where = " AND ((" . $searchQuery . ")) "; }
On my installation $searchQuery return ‘()’ so technically it’s not an empty string. This causes the search query to break.
For the fix i simply put:
if ( $searchQuery != '' && $searchQuery != '()' ) { // lets use _OUR_ query instead of WP's, as we have posts already included in our query as well(assuming it's not empty which we check for) $where = " AND ((" . $searchQuery . ")) "; }
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘Search Query Bug fix’ is closed to new replies.