Logical not bitwise operator

This commit is contained in:
Gerhard Potgieter 2018-09-18 15:11:26 +02:00
parent b27980dae7
commit 9849228442
1 changed files with 1 additions and 1 deletions

View File

@ -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 ) );
}
}