From 47fbd79d8f76d8f1ec18bfd9546792ae9f342efc Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Tue, 10 Apr 2018 12:25:09 +0100 Subject: [PATCH] Clear shipping transient when saving shipping method on zones screen --- includes/class-wc-ajax.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/includes/class-wc-ajax.php b/includes/class-wc-ajax.php index 347dc8f2628..c054d6d8481 100644 --- a/includes/class-wc-ajax.php +++ b/includes/class-wc-ajax.php @@ -2660,6 +2660,8 @@ class WC_AJAX { $shipping_method->set_post_data( $_POST['data'] ); $shipping_method->process_admin_options(); + WC_Cache_Helper::get_transient_version( 'shipping', true ); + wp_send_json_success( array( 'zone_id' => $zone->get_id(),