Remove call to `wp_specialchars_decode()` in `wc_get_price_thousand_separator()` and `wc_get_price_decimal_separator()`.

Closes #6
This commit is contained in:
Ben Bidner 2015-05-18 17:47:59 +10:00 committed by Mike Jolley
parent f3e3b5c209
commit f46060a0dd
1 changed files with 2 additions and 2 deletions

View File

@ -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 : '.';
}