Skip to content

Commit

Permalink
*pods-framework#3527 Use html_entity_decode to convert separator as i…
Browse files Browse the repository at this point in the history
…t is a html entitie
  • Loading branch information
pcfreak30 committed May 17, 2016
1 parent 7e0a87b commit 967c3cc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions classes/fields/number.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' ];
}

Expand Down Expand Up @@ -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' ];
}

Expand Down Expand Up @@ -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' ];
}

Expand Down

0 comments on commit 967c3cc

Please sign in to comment.