From 82b6db58d1699fc7fe4bf8fe190d5888c4fb79a3 Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Tue, 21 Aug 2012 19:05:03 +0100 Subject: [PATCH] missed one --- woocommerce-core-functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/woocommerce-core-functions.php b/woocommerce-core-functions.php index 64d07abf4ed..de1e4a8f3c8 100644 --- a/woocommerce-core-functions.php +++ b/woocommerce-core-functions.php @@ -555,7 +555,7 @@ function woocommerce_trim_zeros( $price ) { * @return string */ function woocommerce_format_decimal( $number ) { - return rtrim( rtrim( number_format( (float) $number, 4, '.', '' ), '0' ), '.' ); + return rtrim( rtrim( number_format( (float) $number, get_option( 'woocommerce_price_num_decimals' ), '.', '' ), '0' ), '.' ); }