From 4c44ed666f3ea9b89b9e0b1458293e1611d93444 Mon Sep 17 00:00:00 2001 From: Claudio Sanches Date: Fri, 11 Nov 2016 14:47:44 -0200 Subject: [PATCH] Removed duplicated sync --- includes/api/class-wc-rest-products-controller.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/includes/api/class-wc-rest-products-controller.php b/includes/api/class-wc-rest-products-controller.php index e1dcc3483e8..870fafb829e 100644 --- a/includes/api/class-wc-rest-products-controller.php +++ b/includes/api/class-wc-rest-products-controller.php @@ -1642,9 +1642,6 @@ class WC_REST_Products_Controller extends WC_REST_Posts_Controller { do_action( 'woocommerce_rest_save_product_variation', $variation->get_id(), $menu_order, $data ); } - // Update parent if variable so price sorting works and stays in sync with the cheapest child. - WC_Product_Variable::sync( $product->get_id() ); - return true; }