From 967c3cc387304e9490cdbe62e3db5ef288dd19d7 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Tue, 17 May 2016 10:46:55 -0400 Subject: [PATCH] *#3527 Use html_entity_decode to convert separator as it is a html entitie --- classes/fields/number.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/classes/fields/number.php b/classes/fields/number.php index 60fa1fbe8e..ed68320144 100644 --- a/classes/fields/number.php +++ b/classes/fields/number.php @@ -291,7 +291,7 @@ public function regex ( $value = null, $name = null, $options = null, $pod = nul $dot = ','; } else { - $thousands = $wp_locale->number_format[ 'thousands_sep' ]; + $thousands = html_entity_decode( $wp_locale->number_format['thousands_sep'] ); $dot = $wp_locale->number_format[ 'decimal_point' ]; } @@ -336,7 +336,7 @@ public function validate ( $value, $name = null, $options = null, $fields = null $dot = ','; } else { - $thousands = $wp_locale->number_format[ 'thousands_sep' ]; + $thousands = html_entity_decode( $wp_locale->number_format['thousands_sep'] ); $dot = $wp_locale->number_format[ 'decimal_point' ]; } @@ -390,7 +390,7 @@ public function pre_save ( $value, $id = null, $name = null, $options = null, $f $dot = ','; } else { - $thousands = $wp_locale->number_format[ 'thousands_sep' ]; + $thousands = html_entity_decode( $wp_locale->number_format['thousands_sep'] ); $dot = $wp_locale->number_format[ 'decimal_point' ]; }