Use remove_ordering_args() to remove order query filters instead of remove_product_query(). Most likely was a merge issue. Fixes #4142
This commit is contained in:
parent
922406b67b
commit
9409907ffa
|
@ -375,8 +375,6 @@ class WC_Query {
|
||||||
*/
|
*/
|
||||||
public function remove_product_query() {
|
public function remove_product_query() {
|
||||||
remove_filter( 'pre_get_posts', array( $this, 'pre_get_posts' ) );
|
remove_filter( 'pre_get_posts', array( $this, 'pre_get_posts' ) );
|
||||||
remove_filter( 'posts_clauses', array( $this, 'order_by_popularity_post_clauses' ) );
|
|
||||||
remove_filter( 'posts_clauses', array( $this, 'order_by_rating_post_clauses' ) );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue