Feedback
This commit is contained in:
parent
e85338d8d3
commit
76a37fa0d2
|
@ -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',
|
||||
|
|
|
@ -2019,7 +2019,7 @@ function wc_decimal_to_fraction( $decimal ) {
|
|||
}
|
||||
|
||||
if ( 0 === $decimal ) {
|
||||
return [ 0, 0 ];
|
||||
return array( 0, 1 );
|
||||
}
|
||||
|
||||
$tolerance = 1.e-4;
|
||||
|
|
Loading…
Reference in New Issue