diff --git a/includes/wc-template-functions.php b/includes/wc-template-functions.php index 2feb54ff32f..cc9aceec8de 100644 --- a/includes/wc-template-functions.php +++ b/includes/wc-template-functions.php @@ -228,6 +228,10 @@ function wc_product_post_class( $classes, $class = '', $post_id = '' ) { $classes[] = $product->stock_status; } + if ( ( $key = array_search( 'hentry', $classes ) ) !== false ) { + unset( $classes[ $key ] ); + } + return $classes; }