Skip to content

Commit

Permalink
Seamless mode didn't load
Browse files Browse the repository at this point in the history
Fixes #114
  • Loading branch information
ajaydsouza committed Nov 29, 2024
1 parent 9514607 commit 0825d40
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion includes/frontend/class-template-handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ public function __construct() {
public function load_seamless_mode( $query ) {
if (
$query->get( 'better_search_query' ) ||
( wp_is_block_theme() && $query->is_search() )
( wp_is_block_theme() && $query->is_search() ) ||
( $query->is_search() && bsearch_get_option( 'seamless' ) )
) {
if ( ! isset( $query->query_vars['is_better_search_loaded'] ) || ! $query->query_vars['is_better_search_loaded'] ) {
new \Better_Search_Core_Query( $query->query_vars );
Expand Down

0 comments on commit 0825d40

Please sign in to comment.