Fix option names

This commit is contained in:
Mike Jolley 2017-11-14 16:59:59 +00:00
parent 4cb3a30a60
commit 616d85f9cb
1 changed files with 2 additions and 2 deletions

View File

@ -710,8 +710,8 @@ function wc_get_image_size( $image_size ) {
$size['height'] = 9999999999;
$size['crop'] = 0;
} elseif ( 'custom' === $cropping ) {
$width = max( 1, get_option( 'woocommerce_thumbnail_cropping_width', '4' ) );
$height = max( 1, get_option( 'woocommerce_thumbnail_cropping_height', '4' ) );
$width = max( 1, get_option( 'woocommerce_thumbnail_cropping_custom_width', '4' ) );
$height = max( 1, get_option( 'woocommerce_thumbnail_cropping_custom_width', '3' ) );
$size['height'] = round( ( $size['width'] / $width ) * $height );
$size['crop'] = 1;
} else {