From 2b2a54c5dcfbf92d67a52802a5673b4c5dc13604 Mon Sep 17 00:00:00 2001 From: George Stephanis Date: Fri, 7 Aug 2015 16:01:57 -0400 Subject: [PATCH] Pass rates in as an array, not an associative array, so it's an Array in js. --- includes/admin/settings/views/html-settings-tax.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/admin/settings/views/html-settings-tax.php b/includes/admin/settings/views/html-settings-tax.php index 893e6437fcc..fb2ed3ca79c 100644 --- a/includes/admin/settings/views/html-settings-tax.php +++ b/includes/admin/settings/views/html-settings-tax.php @@ -40,7 +40,7 @@ foreach ( WC()->countries->get_allowed_country_states() as $label ) { // Localize and enqueue our js. wp_localize_script( 'wc-settings-tax', 'htmlSettingsTaxLocalizeScript', array( 'current_class' => $current_class, - 'rates' => $rates, + 'rates' => array_values( $rates ), 'page' => $page, 'limit' => $limit, 'countries' => $countries,