From f46060a0dd2416985e530f8c549763206b6efb41 Mon Sep 17 00:00:00 2001 From: Ben Bidner Date: Mon, 18 May 2015 17:47:59 +1000 Subject: [PATCH] Remove call to `wp_specialchars_decode()` in `wc_get_price_thousand_separator()` and `wc_get_price_decimal_separator()`. Closes #6 --- includes/wc-formatting-functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/wc-formatting-functions.php b/includes/wc-formatting-functions.php index b9b5ebcdd60..e4522bda53d 100644 --- a/includes/wc-formatting-functions.php +++ b/includes/wc-formatting-functions.php @@ -334,7 +334,7 @@ function get_woocommerce_price_format() { * @return string */ function wc_get_price_thousand_separator() { - $separator = wp_specialchars_decode( stripslashes( get_option( 'woocommerce_price_thousand_sep' ) ), ENT_QUOTES ); + $separator = stripslashes( get_option( 'woocommerce_price_thousand_sep' ) ); return $separator; } @@ -344,7 +344,7 @@ function wc_get_price_thousand_separator() { * @return string */ function wc_get_price_decimal_separator() { - $separator = wp_specialchars_decode( stripslashes( get_option( 'woocommerce_price_decimal_sep' ) ), ENT_QUOTES ); + $separator = stripslashes( get_option( 'woocommerce_price_decimal_sep' ) ); return $separator ? $separator : '.'; }