diff --git a/includes/classes/Feature/Comments/Comments.php b/includes/classes/Feature/Comments/Comments.php index 470bec373e..8f6e388744 100644 --- a/includes/classes/Feature/Comments/Comments.php +++ b/includes/classes/Feature/Comments/Comments.php @@ -110,7 +110,7 @@ public function integrate_search_queries( $enabled, $query ) { return $enabled; } - if ( isset( $query->query_vars['ep_integrate'] ) && ! filter_var( $query->query_vars['ep_integrate'], FILTER_VALIDATE_BOOL ) ) { + if ( isset( $query->query_vars['ep_integrate'] ) && ! filter_var( $query->query_vars['ep_integrate'], FILTER_VALIDATE_BOOLEAN ) ) { $enabled = false; } elseif ( ! empty( $query->query_vars['search'] ) ) { $enabled = true; diff --git a/includes/classes/Feature/Search/Search.php b/includes/classes/Feature/Search/Search.php index 2ad26d6233..203445df00 100644 --- a/includes/classes/Feature/Search/Search.php +++ b/includes/classes/Feature/Search/Search.php @@ -576,7 +576,7 @@ public function integrate_search_queries( $enabled, $query ) { return $enabled; } - if ( isset( $query->query_vars['ep_integrate'] ) && ! filter_var( $query->query_vars['ep_integrate'], FILTER_VALIDATE_BOOL ) ) { + if ( isset( $query->query_vars['ep_integrate'] ) && ! filter_var( $query->query_vars['ep_integrate'], FILTER_VALIDATE_BOOLEAN ) ) { return false; } diff --git a/includes/classes/Feature/Terms/Terms.php b/includes/classes/Feature/Terms/Terms.php index d9dbc05031..d61649a33c 100644 --- a/includes/classes/Feature/Terms/Terms.php +++ b/includes/classes/Feature/Terms/Terms.php @@ -87,7 +87,7 @@ public function integrate_search_queries( $enabled, $query ) { return $enabled; } - if ( isset( $query->query_vars['ep_integrate'] ) && ! filter_var( $query->query_vars['ep_integrate'], FILTER_VALIDATE_BOOL ) ) { + if ( isset( $query->query_vars['ep_integrate'] ) && ! filter_var( $query->query_vars['ep_integrate'], FILTER_VALIDATE_BOOLEAN ) ) { $enabled = false; } elseif ( ! empty( $query->query_vars['search'] ) ) { $enabled = true; diff --git a/includes/classes/Feature/Users/Users.php b/includes/classes/Feature/Users/Users.php index 1defe0ab9e..d5ea756e25 100644 --- a/includes/classes/Feature/Users/Users.php +++ b/includes/classes/Feature/Users/Users.php @@ -87,7 +87,7 @@ public function integrate_search_queries( $enabled, $query ) { return $enabled; } - if ( isset( $query->query_vars['ep_integrate'] ) && ! filter_var( $query->query_vars['ep_integrate'], FILTER_VALIDATE_BOOL ) ) { + if ( isset( $query->query_vars['ep_integrate'] ) && ! filter_var( $query->query_vars['ep_integrate'], FILTER_VALIDATE_BOOLEAN ) ) { $enabled = false; } elseif ( ! empty( $query->query_vars['search'] ) ) { $enabled = true; diff --git a/includes/classes/Feature/WooCommerce/WooCommerce.php b/includes/classes/Feature/WooCommerce/WooCommerce.php index d88281d9ec..1e891dcf9d 100644 --- a/includes/classes/Feature/WooCommerce/WooCommerce.php +++ b/includes/classes/Feature/WooCommerce/WooCommerce.php @@ -947,7 +947,7 @@ protected function should_integrate_with_query( $query ) { * @return {bool} New skip value */ if ( apply_filters( 'ep_skip_query_integration', false, $query ) || - ( isset( $query->query_vars['ep_integrate'] ) && ! filter_var( $query->query_vars['ep_integrate'], FILTER_VALIDATE_BOOL ) ) ) { + ( isset( $query->query_vars['ep_integrate'] ) && ! filter_var( $query->query_vars['ep_integrate'], FILTER_VALIDATE_BOOLEAN ) ) ) { return false; } diff --git a/includes/classes/Indexable.php b/includes/classes/Indexable.php index 27ab62dd91..54e002543d 100644 --- a/includes/classes/Indexable.php +++ b/includes/classes/Indexable.php @@ -385,7 +385,7 @@ public function elasticpress_enabled( $query ) { */ $enabled = apply_filters( 'ep_elasticpress_enabled', $enabled, $query ); - if ( isset( $query->query_vars['ep_integrate'] ) && ! filter_var( $query->query_vars['ep_integrate'], FILTER_VALIDATE_BOOL ) ) { + if ( isset( $query->query_vars['ep_integrate'] ) && ! filter_var( $query->query_vars['ep_integrate'], FILTER_VALIDATE_BOOLEAN ) ) { $enabled = false; }