missed one

This commit is contained in:
Mike Jolley 2012-08-21 19:05:03 +01:00
parent 03f64acf58
commit 82b6db58d1
1 changed files with 1 additions and 1 deletions

View File

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