WP Image Zoom - Version 1.46

Version Description

  • 03/10/2021
  • Fix: remove zoom in Divi Visual Builder for newer versions of Divi
  • The largest image wasn't chosen from the "srcset" attribute
Download this release

Release Info

Developer diana_burduja
Plugin Icon 128x128 WP Image Zoom
Version 1.46
Comparing to
See all releases

Code changes from version 1.45.1 to 1.46

Files changed (3) hide show
  1. assets/js/image_zoom-init.js +6 -1
  2. image-zoooom.php +3 -3
  3. readme.txt +5 -4
assets/js/image_zoom-init.js CHANGED
@@ -15,8 +15,13 @@ jQuery(document).ready(function( $ ){
15
  return;
16
  }
17
 
 
 
18
  // Is this an Elementor editor iframe.
19
- if ( $('body.elementor-editor-active').length > 0 || window.location.href.indexOf('vc_action=vc_inline') > 0 || window.location.href.indexOf('vc_editable=true') > 0 || window.location.href.indexOf('et_fb=') > 0 ) {
 
 
 
20
  return;
21
  }
22
 
15
  return;
16
  }
17
 
18
+ var url = (window.location != window.parent.location) ? document.parent.location.href: document.location.href;
19
+
20
  // Is this an Elementor editor iframe.
21
+ if ( $('body.elementor-editor-active').length > 0
22
+ || url.indexOf('vc_action=vc_inline') > 0
23
+ || url.indexOf('vc_editable=true') > 0
24
+ || url.indexOf('et_fb=') > 0 ) {
25
  return;
26
  }
27
 
image-zoooom.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: WP Image Zoom
4
  * Plugin URI: https://wordpress.org/plugins/wp-image-zoooom/
5
  * Description: Add zoom effect over the an image, whether it is an image in a post/page or the featured image of a product in a WooCommerce shop
6
- * Version: 1.45.1
7
  * Author: SilkyPress
8
  * Author URI: https://www.silkypress.com
9
  * License: GPL2
@@ -12,7 +12,7 @@
12
  * Domain Path: /languages/
13
  *
14
  * WC requires at least: 3.0.0
15
- * WC tested up to: 4.9
16
  */
17
 
18
  if ( ! defined( 'ABSPATH' ) ) {
@@ -26,7 +26,7 @@ if ( ! class_exists( 'ImageZoooom' ) ) :
26
  * @class ImageZoooom
27
  */
28
  final class ImageZoooom {
29
- public $version = '1.45.1';
30
  public $theme = '';
31
  protected static $_instance = null;
32
 
3
  * Plugin Name: WP Image Zoom
4
  * Plugin URI: https://wordpress.org/plugins/wp-image-zoooom/
5
  * Description: Add zoom effect over the an image, whether it is an image in a post/page or the featured image of a product in a WooCommerce shop
6
+ * Version: 1.46
7
  * Author: SilkyPress
8
  * Author URI: https://www.silkypress.com
9
  * License: GPL2
12
  * Domain Path: /languages/
13
  *
14
  * WC requires at least: 3.0.0
15
+ * WC tested up to: 5.4
16
  */
17
 
18
  if ( ! defined( 'ABSPATH' ) ) {
26
  * @class ImageZoooom
27
  */
28
  final class ImageZoooom {
29
+ public $version = '1.46';
30
  public $theme = '';
31
  protected static $_instance = null;
32
 
readme.txt CHANGED
@@ -4,8 +4,8 @@ Contributors: diana_burduja
4
  Email: diana@burduja.eu
5
  Tags: e-commerce, featured image, hover over image zoom, image, image zoom, image zoom plugin, image magnification, image magnifier, jquery picture zoom, magnifier, magnify image, magnifying glass, mouse over image zoom, panorama, picture zoom, product image, product zoom, product magnification, product magnifier, responsive, woocommerce product zoom, woocommerce zoom, woocommerce magnifying glass, zoom, zoom image, zoom plugin, woocommerce image zoom, woocommerce product image zoom, woocommerce zoom magnifier
6
  Requires at least: 3.0.1
7
- Tested up to: 5.6
8
- Stable tag: 1.45.1
9
  License: GPLv3
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
11
  Requires PHP: 5.2.4
@@ -155,8 +155,9 @@ Alternatively you can upgrade to the Pro version, as there the zoom lens is buil
155
 
156
  == Changelog ==
157
 
158
- = 1.45.1 =
159
- * 01/11/2021
 
160
  * The largest image wasn't chosen from the "srcset" attribute
161
 
162
  = 1.45 =
4
  Email: diana@burduja.eu
5
  Tags: e-commerce, featured image, hover over image zoom, image, image zoom, image zoom plugin, image magnification, image magnifier, jquery picture zoom, magnifier, magnify image, magnifying glass, mouse over image zoom, panorama, picture zoom, product image, product zoom, product magnification, product magnifier, responsive, woocommerce product zoom, woocommerce zoom, woocommerce magnifying glass, zoom, zoom image, zoom plugin, woocommerce image zoom, woocommerce product image zoom, woocommerce zoom magnifier
6
  Requires at least: 3.0.1
7
+ Tested up to: 5.7
8
+ Stable tag: 1.46
9
  License: GPLv3
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
11
  Requires PHP: 5.2.4
155
 
156
  == Changelog ==
157
 
158
+ = 1.46 =
159
+ * 03/10/2021
160
+ * Fix: remove zoom in Divi Visual Builder for newer versions of Divi
161
  * The largest image wasn't chosen from the "srcset" attribute
162
 
163
  = 1.45 =