From 7de0ab6dd819c270aa23176603174e2a4ef81051 Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Mon, 19 Dec 2011 19:25:25 +0000 Subject: [PATCH] Shipping save fix --- admin/woocommerce-admin-settings.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/admin/woocommerce-admin-settings.php b/admin/woocommerce-admin-settings.php index c5297da299f..da504fdc654 100644 --- a/admin/woocommerce-admin-settings.php +++ b/admin/woocommerce-admin-settings.php @@ -976,6 +976,10 @@ function woocommerce_settings() { do_action( 'woocommerce_update_options' ); do_action( 'woocommerce_update_options_' . $current_tab ); + + // Backwards compat 1.4 < + if ($current_tab=='shipping') do_action( 'woocommerce_update_options_shipping_methods' ); + flush_rewrite_rules( false ); wp_redirect( add_query_arg( 'subtab', esc_attr(str_replace('#', '', $_POST['subtab'])), add_query_arg( 'saved', 'true', admin_url( 'admin.php?page=woocommerce&tab=' . $current_tab ) )) ); endif;