Remove filter only needs priority

Co-Authored-By: Dragoș Mocrii <dragosmocrii@users.noreply.github.com>
This commit is contained in:
Mike Jolley 2019-04-24 13:54:12 +01:00
parent 04e51191c4
commit 192fecc0d8
1 changed files with 1 additions and 1 deletions

View File

@ -593,7 +593,7 @@ function wc_get_product_class( $class = '', $product = null ) {
$filtered = has_filter( 'post_class', 'wc_product_post_class' );
if ( $filtered ) {
remove_filter( 'post_class', 'wc_product_post_class', 20, 3 );
remove_filter( 'post_class', 'wc_product_post_class', 20 );
}
$post_classes = apply_filters( 'post_class', $post_classes, $class, $product->get_id() );