Hard crop fix
This commit is contained in:
parent
f2d9aa8d9d
commit
6ceae28559
|
@ -59,6 +59,7 @@ For further documentation on using WooCommerce, please sign up for free at http:
|
||||||
|
|
||||||
= 1.1.1 - xxx =
|
= 1.1.1 - xxx =
|
||||||
* Products need a base, regardless of category settings - added base to prevent pages breaking
|
* Products need a base, regardless of category settings - added base to prevent pages breaking
|
||||||
|
* Fixed hard cropping
|
||||||
|
|
||||||
= 1.1 - 12/10/2011 =
|
= 1.1 - 12/10/2011 =
|
||||||
* Tested and working with WordPress 3.3 beta-1
|
* Tested and working with WordPress 3.3 beta-1
|
||||||
|
|
|
@ -100,9 +100,9 @@ function woocommerce_init() {
|
||||||
woocommerce_post_type();
|
woocommerce_post_type();
|
||||||
|
|
||||||
// Image sizes
|
// Image sizes
|
||||||
$shop_thumbnail_crop = (get_option('shop_thumbnail_image_crop')==1) ? true : false;
|
$shop_thumbnail_crop = (get_option('woocommerce_thumbnail_image_crop')==1) ? true : false;
|
||||||
$shop_catalog_crop = (get_option('shop_catalog_image_crop')==1) ? true : false;
|
$shop_catalog_crop = (get_option('woocommerce_catalog_image_crop')==1) ? true : false;
|
||||||
$shop_single_crop = (get_option('shop_single_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_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 );
|
add_image_size( 'shop_catalog', $woocommerce->get_image_size('shop_catalog_image_width'), $woocommerce->get_image_size('shop_catalog_image_height'), $shop_catalog_crop );
|
||||||
|
|
Loading…
Reference in New Issue