diff --git a/includes/class-better-search-query.php b/includes/class-better-search-query.php index 7782fb4..a706d55 100644 --- a/includes/class-better-search-query.php +++ b/includes/class-better-search-query.php @@ -39,6 +39,7 @@ public function __construct( $args = array() ) { add_filter( 'posts_distinct', array( $core_query, 'posts_distinct' ), 10, 2 ); add_filter( 'posts_orderby', array( $core_query, 'posts_orderby' ), 10, 2 ); add_filter( 'posts_groupby', array( $core_query, 'posts_groupby' ), 10, 2 ); + add_filter( 'posts_clauses', array( $core_query, 'posts_clauses' ), 10, 2 ); add_filter( 'posts_clauses_request', array( $core_query, 'set_topscore' ), 10, 2 ); add_filter( 'posts_pre_query', array( $core_query, 'posts_pre_query' ), 10, 2 ); add_filter( 'the_posts', array( $core_query, 'the_posts' ), 10, 2 ); @@ -54,6 +55,7 @@ public function __construct( $args = array() ) { remove_filter( 'posts_distinct', array( $core_query, 'posts_distinct' ) ); remove_filter( 'posts_orderby', array( $core_query, 'posts_orderby' ) ); remove_filter( 'posts_groupby', array( $core_query, 'posts_groupby' ) ); + remove_filter( 'posts_clauses', array( $core_query, 'posts_clauses' ) ); remove_filter( 'posts_clauses_request', array( $core_query, 'set_topscore' ) ); remove_filter( 'posts_pre_query', array( $core_query, 'posts_pre_query' ) ); remove_filter( 'the_posts', array( $core_query, 'the_posts' ) );