Fix - ' in prices (thousand separator)

This commit is contained in:
Mike Jolley 2012-03-19 12:52:27 +00:00
parent 12b28c1f09
commit 165863e292
2 changed files with 2 additions and 1 deletions

View File

@ -150,6 +150,7 @@ Yes you can! Join in on our [GitHub repository](http://github.com/woothemes/wooc
* Fix - Put chosen frontend script back
* Fix - Make download links use billing email, not user email
* Localization - Spanish update by Héctor Carranza
* Fix - ' in prices (thousand separator)
= 1.5.2.1 - 16/03/2012 =
* Fix - Redirect when no payment is required

View File

@ -248,7 +248,7 @@ function woocommerce_price( $price, $args = array() ) {
$num_decimals = (int) get_option('woocommerce_price_num_decimals');
$currency_pos = get_option('woocommerce_currency_pos');
$currency_symbol = get_woocommerce_currency_symbol();
$price = number_format( (double) $price, $num_decimals, get_option('woocommerce_price_decimal_sep'), get_option('woocommerce_price_thousand_sep') );
$price = number_format( (double) $price, $num_decimals, stripslashes(get_option('woocommerce_price_decimal_sep')), stripslashes(get_option('woocommerce_price_thousand_sep')) );
if (get_option('woocommerce_price_trim_zeros')=='yes' && $num_decimals>0) :
$price = woocommerce_trim_zeros($price);