Remove should_filter_query in ‘found_posts’ function in backend search
-
Hi, I think I found a little bug in the backend search engine. The function
found_posts
inincludes/class-algolia-search.php:212
uses the functionshould_filter_query
. But that function checks if it is a search query. But found posts is not a search query.I think you could just remove the check there since the
found_posts
function is only triggered from thepre_get_posts
function on line 155 which itself already checked if it should filter the query (on line 105)
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Remove should_filter_query in ‘found_posts’ function in backend search’ is closed to new replies.