remove un-wanted hentry from products Closes #4880
This commit is contained in:
parent
55f6620e50
commit
c0ee22971d
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue