Undo change

This commit is contained in:
Mike Jolley 2017-05-22 12:19:54 +01:00
parent 2082d84e4d
commit fc8100877c
1 changed files with 1 additions and 0 deletions

View File

@ -287,6 +287,7 @@ class WC_Product_Variation_Data_Store_CPT extends WC_Product_Data_Store_CPT impl
'tax_class' => get_post_meta( $product->get_parent_id(), '_tax_class', true ), 'tax_class' => get_post_meta( $product->get_parent_id(), '_tax_class', true ),
'shipping_class_id' => absint( current( $this->get_term_ids( $product->get_parent_id(), 'product_shipping_class' ) ) ), 'shipping_class_id' => absint( current( $this->get_term_ids( $product->get_parent_id(), 'product_shipping_class' ) ) ),
'image_id' => get_post_thumbnail_id( $product->get_parent_id() ), 'image_id' => get_post_thumbnail_id( $product->get_parent_id() ),
'purchase_note' => get_post_meta( $product->get_parent_id(), '_purchase_note', true ),
) ); ) );
// Pull data from the parent when there is no user-facing way to set props. // Pull data from the parent when there is no user-facing way to set props.