Skip to content

Commit

Permalink
Update class-main.php
Browse files Browse the repository at this point in the history
  • Loading branch information
ajaydsouza committed Nov 17, 2024
1 parent 091bea6 commit 7d56fd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/class-main.php
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ public function register_widgets() {
* @param \WP_Query $query Query object.
*/
public function load_seamless_mode( $query ) {
if ( $query->is_search() && wp_is_block_theme() || true === $query->get( 'better_search_query' ) ) {
if ( ( $query->is_search() && wp_is_block_theme() ) || true === $query->get( 'better_search_query' ) ) {
if ( ! isset( $query->query_vars['is_better_search_loaded'] ) || ! $query->query_vars['is_better_search_loaded'] ) {
new \Better_Search_Core_Query( $query->query_vars );
$query->set( 'is_better_search_loaded', true );
Expand Down

0 comments on commit 7d56fd3

Please sign in to comment.