Hard crop fix

This commit is contained in:
Mike Jolley 2011-10-15 12:16:49 +01:00
parent f2d9aa8d9d
commit 6ceae28559
2 changed files with 4 additions and 3 deletions

View File

@ -59,6 +59,7 @@ For further documentation on using WooCommerce, please sign up for free at http:
= 1.1.1 - xxx =
* Products need a base, regardless of category settings - added base to prevent pages breaking
* Fixed hard cropping
= 1.1 - 12/10/2011 =
* Tested and working with WordPress 3.3 beta-1

View File

@ -100,9 +100,9 @@ function woocommerce_init() {
woocommerce_post_type();
// Image sizes
$shop_thumbnail_crop = (get_option('shop_thumbnail_image_crop')==1) ? true : false;
$shop_catalog_crop = (get_option('shop_catalog_image_crop')==1) ? true : false;
$shop_single_crop = (get_option('shop_single_image_crop')==1) ? true : false;
$shop_thumbnail_crop = (get_option('woocommerce_thumbnail_image_crop')==1) ? true : false;
$shop_catalog_crop = (get_option('woocommerce_catalog_image_crop')==1) ? true : false;
$shop_single_crop = (get_option('woocommerce_single_image_crop')==1) ? true : false;
add_image_size( 'shop_thumbnail', $woocommerce->get_image_size('shop_thumbnail_image_width'), $woocommerce->get_image_size('shop_thumbnail_image_height'), $shop_thumbnail_crop );
add_image_size( 'shop_catalog', $woocommerce->get_image_size('shop_catalog_image_width'), $woocommerce->get_image_size('shop_catalog_image_height'), $shop_catalog_crop );