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:
Scott Basgaard 2013-11-19 22:38:00 +01:00
parent 922406b67b
commit 9409907ffa
1 changed files with 0 additions and 2 deletions

View File

@ -375,8 +375,6 @@ class WC_Query {
*/
public function remove_product_query() {
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' ) );
}
/**