Pass rates in as an array, not an associative array, so it's an Array in js.

This commit is contained in:
George Stephanis 2015-08-07 16:01:57 -04:00
parent d5dd12a8f7
commit 2b2a54c5dc
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ foreach ( WC()->countries->get_allowed_country_states() as $label ) {
// Localize and enqueue our js. // Localize and enqueue our js.
wp_localize_script( 'wc-settings-tax', 'htmlSettingsTaxLocalizeScript', array( wp_localize_script( 'wc-settings-tax', 'htmlSettingsTaxLocalizeScript', array(
'current_class' => $current_class, 'current_class' => $current_class,
'rates' => $rates, 'rates' => array_values( $rates ),
'page' => $page, 'page' => $page,
'limit' => $limit, 'limit' => $limit,
'countries' => $countries, 'countries' => $countries,