Coding standards

This commit is contained in:
Frédéric Demarle 2019-07-26 13:40:13 +02:00
parent e3dd09d021
commit 0fa582a25f
1 changed files with 3 additions and 3 deletions

View File

@ -659,12 +659,12 @@ class WC_Product_Variable_Data_Store_CPT extends WC_Product_Data_Store_CPT imple
if ( ! empty( $variation_ids ) ) {
foreach ( $variation_ids as $variation_id ) {
if ( $force_delete ) {
do_action( 'woocommerce_before_delete_product_variation' , $variation_id );
do_action( 'woocommerce_before_delete_product_variation', $variation_id );
wp_delete_post( $variation_id, true );
do_action( 'woocommerce_delete_product_variation' , $variation_id );
do_action( 'woocommerce_delete_product_variation', $variation_id );
} else {
wp_trash_post( $variation_id );
do_action( 'woocommerce_trash_product_variation' , $variation_id );
do_action( 'woocommerce_trash_product_variation', $variation_id );
}
}
}