Flip default status of price_trim_zeros

#4828 #4823 enabled with add_filter( 'woocommerce_price_trim_zeros',
'__return_true’ );
This commit is contained in:
Mike Jolley 2014-02-17 10:19:12 +00:00
parent ca782212de
commit a67c91db7b
1 changed files with 1 additions and 1 deletions

View File

@ -320,7 +320,7 @@ function wc_price( $price, $args = array() ) {
$price = apply_filters( 'raw_woocommerce_price', floatval( $price ) );
$price = apply_filters( 'formatted_woocommerce_price', number_format( $price, $num_decimals, $decimal_sep, $thousands_sep ), $price, $num_decimals, $decimal_sep, $thousands_sep );
if ( apply_filters( 'woocommerce_price_trim_zeros', true ) && $num_decimals > 0 ) {
if ( apply_filters( 'woocommerce_price_trim_zeros', false ) && $num_decimals > 0 ) {
$price = wc_trim_zeros( $price );
}