Edit context

#12936
This commit is contained in:
Mike Jolley 2017-01-31 17:26:49 +01:00
parent efcbdc3031
commit 5b221b4ed0
1 changed files with 1 additions and 1 deletions

View File

@ -209,7 +209,7 @@ class WC_Product_Variation_Data_Store_CPT extends WC_Product_Data_Store_CPT impl
'tax_class' => get_post_meta( $id, '_tax_class', true ),
) );
if ( $product->is_on_sale() ) {
if ( $product->is_on_sale( 'edit' ) ) {
$product->set_price( $product->get_sale_price( 'edit' ) );
} else {
$product->set_price( $product->get_regular_price( 'edit' ) );