YITH WooCommerce Compare - Version 1.2.1

Version Description

  • Added: Support to WC 2.2.3
Download this release

Release Info

Developer yithemes
Plugin Icon 128x128 YITH WooCommerce Compare
Version 1.2.1
Comparing to
See all releases

Code changes from version 1.2.0 to 1.2.1

Files changed (3) hide show
  1. README.txt +5 -1
  2. class.yith-woocompare-admin.php +3 -2
  3. init.php +2 -2
README.txt CHANGED
@@ -4,7 +4,7 @@ Contributors: yithemes
4
  Tags: woocommerce, compare, compare products, product compare, widget
5
  Requires at least: 3.5.1
6
  Tested up to: 4.0
7
- Stable tag: 1.2.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -83,6 +83,10 @@ Yes, you can sort the fields in the compare table. You can do it in Woocommerce
83
 
84
  == Changelog ==
85
 
 
 
 
 
86
  = 1.2.0 =
87
 
88
  * Added: Support to WC 2.2.2
4
  Tags: woocommerce, compare, compare products, product compare, widget
5
  Requires at least: 3.5.1
6
  Tested up to: 4.0
7
+ Stable tag: 1.2.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
83
 
84
  == Changelog ==
85
 
86
+ = 1.2.1 =
87
+
88
+ * Added: Support to WC 2.2.3
89
+
90
  = 1.2.0 =
91
 
92
  * Added: Support to WC 2.2.2
class.yith-woocompare-admin.php CHANGED
@@ -362,8 +362,9 @@ class YITH_Woocompare_Admin {
362
  $width = WC_Admin_Settings::get_option( $value['id'] . '[width]', $value['default']['width'] );
363
  $height = WC_Admin_Settings::get_option( $value['id'] . '[height]', $value['default']['height'] );
364
  $crop = WC_Admin_Settings::get_option( $value['id'] . '[crop]', $value['default']['crop'] );
365
- $crop = $crop == 'on' ? 1 : 0;
366
- $crop = checked( 1, $crop, false );
 
367
 
368
  ?><tr valign="top">
369
  <th scope="row" class="titledesc"><?php echo esc_html( $value['title'] ) ?> <?php echo $value['desc'] ?></th>
362
  $width = WC_Admin_Settings::get_option( $value['id'] . '[width]', $value['default']['width'] );
363
  $height = WC_Admin_Settings::get_option( $value['id'] . '[height]', $value['default']['height'] );
364
  $crop = WC_Admin_Settings::get_option( $value['id'] . '[crop]', $value['default']['crop'] );
365
+ $crop = WC_Admin_Settings::get_option( $value['id'] . '[crop]' );
366
+ $crop = ( $crop == 'on' || $crop == '1' ) ? 1 : 0;
367
+ $crop = checked( 1, $crop, false );
368
 
369
  ?><tr valign="top">
370
  <th scope="row" class="titledesc"><?php echo esc_html( $value['title'] ) ?> <?php echo $value['desc'] ?></th>
init.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: YITH Woocommerce Compare
4
  * Plugin URI: http://yithemes.com/
5
  * Description: YITH Woocommerce Compare allows you to compare more products with woocommerce plugin, through product attributes.
6
- * Version: 1.2.0
7
  * Author: Your Inspiration Themes
8
  * Author URI: http://yithemes.com/
9
  * Text Domain: yit
@@ -42,7 +42,7 @@ function yith_woocompare_constructor() {
42
  load_plugin_textdomain( 'yit', false, dirname( plugin_basename( __FILE__ ) ). '/languages/' );
43
 
44
  define( 'YITH_WOOCOMPARE', true );
45
- define( 'YITH_WOOCOMPARE_VERSION', '1.2.0' );
46
  define( 'YITH_WOOCOMPARE_URL', plugin_dir_url( __FILE__ ) );
47
  define( 'YITH_WOOCOMPARE_DIR', plugin_dir_path( __FILE__ ) );
48
 
3
  * Plugin Name: YITH Woocommerce Compare
4
  * Plugin URI: http://yithemes.com/
5
  * Description: YITH Woocommerce Compare allows you to compare more products with woocommerce plugin, through product attributes.
6
+ * Version: 1.2.1
7
  * Author: Your Inspiration Themes
8
  * Author URI: http://yithemes.com/
9
  * Text Domain: yit
42
  load_plugin_textdomain( 'yit', false, dirname( plugin_basename( __FILE__ ) ). '/languages/' );
43
 
44
  define( 'YITH_WOOCOMPARE', true );
45
+ define( 'YITH_WOOCOMPARE_VERSION', '1.2.1' );
46
  define( 'YITH_WOOCOMPARE_URL', plugin_dir_url( __FILE__ ) );
47
  define( 'YITH_WOOCOMPARE_DIR', plugin_dir_path( __FILE__ ) );
48