Merge pull request #14037 from woocommerce/fix/legacy-sync
Only call sync if callable
This commit is contained in:
commit
966fd0e411
|
@ -535,11 +535,13 @@ abstract class WC_Abstract_Legacy_Product extends WC_Data {
|
|||
}
|
||||
|
||||
// Sync prices with children
|
||||
if ( is_callable( array( __CLASS__, 'sync' ) ) ) {
|
||||
self::sync( $product_id );
|
||||
|
||||
// Re-load prices
|
||||
$this->read_product_data();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Sync the variable product's attributes with the variations.
|
||||
|
|
Loading…
Reference in New Issue