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_postsinincludes/class-algolia-search.php:212uses 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_postsfunction is only triggered from thepre_get_postsfunction 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.