[2.3] Delete correct transient when linking variations

Closes #8241
This commit is contained in:
Mike Jolley 2015-05-29 15:34:25 +01:00
parent 3222d1473e
commit 803f4a9e85
1 changed files with 2 additions and 2 deletions

View File

@ -942,7 +942,7 @@ class WC_AJAX {
}
}
delete_transient( 'wc_product_children_ids_' . $post_id );
delete_transient( 'wc_product_children_ids_' . $post_id . WC_Cache_Helper::get_transient_version( 'product' ) );
echo $added;
@ -2045,7 +2045,7 @@ class WC_AJAX {
if ( $refund_id && 'shop_order_refund' === get_post_type( $refund_id ) ) {
wc_delete_shop_order_transients( wp_get_post_parent_id( $refund_id ) );
wp_delete_post( $refund_id );
do_action( 'woocommerce_refund_deleted', $refund_id );
}