From 192fecc0d82b69f371bfc1d4a6c39e22aec8d48e Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Wed, 24 Apr 2019 13:54:12 +0100 Subject: [PATCH] Remove filter only needs priority MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: DragoČ™ Mocrii --- includes/wc-template-functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/wc-template-functions.php b/includes/wc-template-functions.php index 9b8aadde735..1425babb547 100644 --- a/includes/wc-template-functions.php +++ b/includes/wc-template-functions.php @@ -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() );