This commit is contained in:
Mike Jolley 2018-01-25 15:14:02 +00:00
parent e85338d8d3
commit 76a37fa0d2
2 changed files with 2 additions and 2 deletions

View File

@ -506,7 +506,7 @@ class WC_Shop_Customizer {
$wp_customize->add_setting(
'woocommerce_thumbnail_cropping',
array(
'default' => '1: 1',
'default' => '1:1',
'type' => 'option',
'capability' => 'manage_woocommerce',
'sanitize_callback' => 'wc_clean',

View File

@ -2019,7 +2019,7 @@ function wc_decimal_to_fraction( $decimal ) {
}
if ( 0 === $decimal ) {
return [ 0, 0 ];
return array( 0, 1 );
}
$tolerance = 1.e-4;