From 6ceae285596f4193d722d63b41b144c02b6c1f25 Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Sat, 15 Oct 2011 12:16:49 +0100 Subject: [PATCH] Hard crop fix --- readme.txt | 1 + woocommerce.php | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/readme.txt b/readme.txt index 51248190ece..22ce7cef698 100644 --- a/readme.txt +++ b/readme.txt @@ -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 diff --git a/woocommerce.php b/woocommerce.php index 84383438d21..c9738eac34b 100644 --- a/woocommerce.php +++ b/woocommerce.php @@ -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 );