From 98492284423997590ff1243120027afb0e5ac760 Mon Sep 17 00:00:00 2001 From: Gerhard Potgieter Date: Tue, 18 Sep 2018 15:11:26 +0200 Subject: [PATCH] Logical not bitwise operator --- 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 d804ff6f2c8..a6c7e3a6d5a 100644 --- a/includes/wc-template-functions.php +++ b/includes/wc-template-functions.php @@ -623,7 +623,7 @@ function wc_get_product_class( $class = '', $product_id = null ) { if ( apply_filters( 'woocommerce_get_product_class_include_taxonomies', false ) ) { $taxonomies = get_taxonomies( array( 'public' => true ) ); foreach ( (array) $taxonomies as $taxonomy ) { - if ( is_object_in_taxonomy( $post->post_type, $taxonomy ) &! in_array( $taxonomy, array( 'product_cat', 'product_tag' ), true ) ) { + if ( is_object_in_taxonomy( $post->post_type, $taxonomy ) && ! in_array( $taxonomy, array( 'product_cat', 'product_tag' ), true ) ) { $classes = array_merge( $classes, wc_get_product_taxonomy_class( (array) get_the_terms( $post->ID, $taxonomy ), $taxonomy ) ); } }