Merge pull request #19668 from woocommerce/fix/19657

Clear shipping transient when saving shipping method on zones screen
This commit is contained in:
Claudio Sanches 2018-04-10 14:28:53 -03:00 committed by GitHub
commit f3f05fd59a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -2660,6 +2660,8 @@ class WC_AJAX {
$shipping_method->set_post_data( $_POST['data'] ); $shipping_method->set_post_data( $_POST['data'] );
$shipping_method->process_admin_options(); $shipping_method->process_admin_options();
WC_Cache_Helper::get_transient_version( 'shipping', true );
wp_send_json_success( wp_send_json_success(
array( array(
'zone_id' => $zone->get_id(), 'zone_id' => $zone->get_id(),