From e87007d5cdab93820c970be15e936e2f11d384dd Mon Sep 17 00:00:00 2001 From: Claudio Sanches Date: Sat, 23 Jan 2016 14:32:09 -0200 Subject: [PATCH] [2.5] Fixed tax row autocomplete htmlentity, closes #10149 --- includes/admin/settings/class-wc-settings-tax.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/includes/admin/settings/class-wc-settings-tax.php b/includes/admin/settings/class-wc-settings-tax.php index f1c35101653..6435109690d 100644 --- a/includes/admin/settings/class-wc-settings-tax.php +++ b/includes/admin/settings/class-wc-settings-tax.php @@ -109,16 +109,15 @@ class WC_Settings_Tax extends WC_Settings_Page { * Output tax rate tables. */ public function output_tax_rates() { - global $wpdb, - $current_section; + global $wpdb, $current_section; $current_class = $this->get_current_tax_class(); $countries = array(); foreach ( WC()->countries->get_allowed_countries() as $value => $label ) { $countries[] = array( - 'label' => $label, 'value' => $value, + 'label' => esc_js( html_entity_decode( $label ) ), ); } @@ -126,8 +125,8 @@ class WC_Settings_Tax extends WC_Settings_Page { foreach ( WC()->countries->get_allowed_country_states() as $label ) { foreach ( $label as $code => $state ) { $states[] = array( - 'label' => $state, 'value' => $code, + 'label' => esc_js( html_entity_decode( $state ) ), ); } }