remove un-wanted hentry from products Closes #4880

This commit is contained in:
Mike Jolley 2014-02-23 11:13:42 +00:00 committed by Coen Jacobs
parent 55f6620e50
commit c0ee22971d
1 changed files with 4 additions and 0 deletions

View File

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