YITH WooCommerce Zoom Magnifier - Version 1.2.8

Version Description

Download this release

Release Info

Developer yithemes
Plugin Icon 128x128 YITH WooCommerce Zoom Magnifier
Version 1.2.8
Comparing to
See all releases

Code changes from version 1.2.7 to 1.2.8

README.txt CHANGED
@@ -4,7 +4,7 @@ Contributors: yithemes
4
  Tags: zoom, magnifier, woocommerce, product image, themes, yit, e-commerce, shop, thumbnail, thumbnail slider, zoom image, carousel, image carousel
5
  Requires at least: 3.5.1
6
  Tested up to: 4.3
7
- Stable tag: 1.2.7
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -59,6 +59,10 @@ The size of the Zoom Image is automatically setted. If you want to change these
59
 
60
  == Changelog ==
61
 
 
 
 
 
62
  = Version 1.2.7 - RELEASED: AUG 27, 2015 =
63
 
64
  * Fix: resolved XSS vulnerability.
4
  Tags: zoom, magnifier, woocommerce, product image, themes, yit, e-commerce, shop, thumbnail, thumbnail slider, zoom image, carousel, image carousel
5
  Requires at least: 3.5.1
6
  Tested up to: 4.3
7
+ Stable tag: 1.2.8
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
59
 
60
  == Changelog ==
61
 
62
+ = Version 1.2.8 - RELEASED: SEP 01, 2015 =
63
+
64
+ * Fix: removed deprecated woocommerce_update_option_X hook.
65
+
66
  = Version 1.2.7 - RELEASED: AUG 27, 2015 =
67
 
68
  * Fix: resolved XSS vulnerability.
assets/js/frontend.js CHANGED
@@ -3,7 +3,7 @@
3
  *
4
  * @author Your Inspiration Themes
5
  * @package YITH WooCommerce Zoom Magnifier
6
- * @version 1.1.2
7
  */
8
  jQuery(document).ready(function ($) {
9
 
3
  *
4
  * @author Your Inspiration Themes
5
  * @package YITH WooCommerce Zoom Magnifier
6
+ * @version 1.2.8
7
  */
8
  jQuery(document).ready(function ($) {
9
 
class.yith-wcmg.php CHANGED
@@ -22,7 +22,7 @@ if( !class_exists( 'YITH_WCMG' ) ) {
22
  * @var string
23
  * @since 1.0.0
24
  */
25
- public $version = '1.1.5';
26
 
27
  /**
28
  * Plugin object
22
  * @var string
23
  * @since 1.0.0
24
  */
25
+ public $version = '1.2.8';
26
 
27
  /**
28
  * Plugin object
init.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: YITH WooCommerce Zoom Magnifier
4
  * Plugin URI: http://yithemes.com/themes/plugins/yith-woocommerce-zoom-magnifier/
5
  * Description: YITH WooCommerce Zoom Magnifier enables you to add a zoom effect to product images and a thumbnail slider for the product image gallery.
6
- * Version: 1.2.7
7
  * Author: Yithemes
8
  * Author URI: http://yithemes.com/
9
  * Text Domain: ywzm
@@ -11,7 +11,7 @@
11
  *
12
  * @author Your Inspiration Themes
13
  * @package YITH WooCommerce Magnifier
14
- * @version 1.2.7
15
  */
16
  /* Copyright 2013-2015 Your Inspiration Themes (email : plugins@yithemes.com)
17
 
@@ -65,7 +65,7 @@ if ( ! defined( 'YITH_YWZM_FREE_INIT' ) ) {
65
  }
66
 
67
  if ( ! defined( 'YITH_YWZM_VERSION' ) ) {
68
- define( 'YITH_YWZM_VERSION', '1.2.7' );
69
  }
70
 
71
  if ( ! defined( 'YITH_YWZM_FILE' ) ) {
3
  * Plugin Name: YITH WooCommerce Zoom Magnifier
4
  * Plugin URI: http://yithemes.com/themes/plugins/yith-woocommerce-zoom-magnifier/
5
  * Description: YITH WooCommerce Zoom Magnifier enables you to add a zoom effect to product images and a thumbnail slider for the product image gallery.
6
+ * Version: 1.2.8
7
  * Author: Yithemes
8
  * Author URI: http://yithemes.com/
9
  * Text Domain: ywzm
11
  *
12
  * @author Your Inspiration Themes
13
  * @package YITH WooCommerce Magnifier
14
+ * @version 1.2.8
15
  */
16
  /* Copyright 2013-2015 Your Inspiration Themes (email : plugins@yithemes.com)
17
 
65
  }
66
 
67
  if ( ! defined( 'YITH_YWZM_VERSION' ) ) {
68
+ define( 'YITH_YWZM_VERSION', '1.2.8' );
69
  }
70
 
71
  if ( ! defined( 'YITH_YWZM_FILE' ) ) {
lib/class.yith-woocommerce-zoom-magnifier.php CHANGED
@@ -25,7 +25,7 @@ if ( ! class_exists( 'YITH_WooCommerce_Zoom_Magnifier' ) ) {
25
  * @var string
26
  * @since 1.0.0
27
  */
28
- public $version = '1.1.5';
29
 
30
  /**
31
  * Plugin object
25
  * @var string
26
  * @since 1.0.0
27
  */
28
+ public $version = '1.2.8';
29
 
30
  /**
31
  * Plugin object
lib/class.yith-ywzm-custom-types.php CHANGED
@@ -42,17 +42,11 @@ if ( ! class_exists( 'YITH_YWZM_Custom_Types' ) ) {
42
 
43
  /** Custom types : slider */
44
  add_action( 'woocommerce_admin_field_slider', array( $this, 'admin_fields_slider' ) );
45
- add_action( 'woocommerce_update_option_slider', array( $this, 'admin_update_option' ) );
46
-
47
- /** Custom types : picker */
48
- add_action( 'woocommerce_admin_field_picker', array( $this, 'admin_fields_picker' ) );
49
- add_action( 'woocommerce_update_option_picker', array( $this, 'admin_update_option' ) );
50
 
51
  add_action( 'woocommerce_admin_field_yith_ywzm_image_width', array(
52
  $this,
53
  'admin_fields_yith_ywzm_image_width'
54
  ) );
55
- add_action( 'woocommerce_update_option_yith_ywzm_image_width', array( $this, 'yit_upload_update' ), 10, 1 );
56
  }
57
 
58
  /**
@@ -125,35 +119,6 @@ if ( ! class_exists( 'YITH_YWZM_Custom_Types' ) ) {
125
  update_option( $value['id'], woocommerce_clean( $_POST[$value['id']] ) );
126
  }
127
 
128
- /**
129
- * Create new Woocommerce admin field: picker
130
- *
131
- * @access public
132
- *
133
- * @param array $value
134
- *
135
- * @return void
136
- * @since 1.0.0
137
- */
138
- public function admin_fields_picker( $value ) {
139
- $picker_value = ( get_option( $value['id'] ) !== false && get_option( $value['id'] ) !== null ) ?
140
- esc_attr( stripslashes( get_option( $value['id'] ) ) ) :
141
- esc_attr( $value['std'] );
142
-
143
- ?>
144
- <tr valign="top">
145
- <th scope="row" class="titledesc">
146
- <label for="<?php echo esc_attr( $value['id'] ); ?>"><?php echo $value['name']; ?></label>
147
- </th>
148
- <td class="forminp">
149
- <div class="color_box"><strong><?php echo $value['name']; ?></strong>
150
- <input name="<?php echo esc_attr( $value['id'] ) ?>" id="<?php echo esc_attr( $value['id'] ) ?>" type="text" value="<?php echo $picker_value ?>" class="colorpick" />
151
-
152
- <div id="colorPickerDiv_<?php echo esc_attr( $value['id'] ) ?>" class="colorpickdiv"></div>
153
- </div> <?php echo $value['desc']; ?></td>
154
- </tr>
155
- <?php
156
- }
157
 
158
  /**
159
  * Create new Woocommerce admin field: yith_ywzm_image_width
42
 
43
  /** Custom types : slider */
44
  add_action( 'woocommerce_admin_field_slider', array( $this, 'admin_fields_slider' ) );
 
 
 
 
 
45
 
46
  add_action( 'woocommerce_admin_field_yith_ywzm_image_width', array(
47
  $this,
48
  'admin_fields_yith_ywzm_image_width'
49
  ) );
 
50
  }
51
 
52
  /**
119
  update_option( $value['id'], woocommerce_clean( $_POST[$value['id']] ) );
120
  }
121
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
122
 
123
  /**
124
  * Create new Woocommerce admin field: yith_ywzm_image_width