Merge pull request #16661 from Umangvaghela/fixissue

fix issue
This commit is contained in:
Mike Jolley 2017-08-31 12:22:15 +01:00 committed by GitHub
commit 1a8a16c79c
1 changed files with 1 additions and 1 deletions

View File

@ -265,7 +265,7 @@ class WC_Order_Item extends WC_Data implements ArrayAccess {
}
// Skip items with values already in the product details area of the product name.
if ( ! $include_all && $product && wc_is_attribute_in_product_name( $display_value, $order_item_name ) ) {
if ( ! $include_all && $product && $product->is_type( 'variation' ) && wc_is_attribute_in_product_name( $display_value, $order_item_name ) ) {
continue;
}