Logical not bitwise operator
This commit is contained in:
parent
b27980dae7
commit
9849228442
|
@ -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 ) );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue