SELECT SQL_CALC_FOUND_ROWS wp_posts.ID
FROM wp_posts WHERE 1=1
AND (((wp_posts.post_title LIKE '%wat%')
OR (wp_posts.post_excerpt LIKE '%wat%')
OR (wp_posts.post_content LIKE '%wat%')))
This plugin adds a new condition:
$where .= " AND REGEXP_REPLACE({$wpdb->posts}.post_content, '<.+?>', '') LIKE '%{$search_query}%'";
This breaks searching for title and excerpt.
We need to add the two OR statements again to fix this.
A simplified Query for a standard search is this
This plugin adds a new condition:
$where .= " AND REGEXP_REPLACE({$wpdb->posts}.post_content, '<.+?>', '') LIKE '%{$search_query}%'";
This breaks searching for title and excerpt.
We need to add the two OR statements again to fix this.