Enjoy Instagram feed on website with WordPress Widget and Shortcode - Version 6.0.2

Version Description

  • fix: in some cases the photos were not shown.
Download this release

Release Info

Developer designemotions
Plugin Icon 128x128 Enjoy Instagram feed on website with WordPress Widget and Shortcode
Version 6.0.2
Comparing to
See all releases

Code changes from version 6.0.1 to 6.0.2

enjoyinstagram.php CHANGED
@@ -11,7 +11,7 @@
11
  * Plugin Name: Enjoy Instagram
12
  * Plugin URI: https://www.mediabetaprojects.com/enjoy-instagram-premium/
13
  * Description: Instagram Responsive Images Gallery and Carousel, works with Shortcodes and Widgets.
14
- * Version: 6.0.1
15
  * Requires at least: 4.0
16
  * Requires PHP: 7.2
17
  * Author: Mediabeta Srl
@@ -22,7 +22,7 @@
22
  * License URI: http://www.gnu.org/licenses/gpl-3.0.html
23
  */
24
 
25
- ! defined( 'ENJOYINSTAGRAM_VERSION' ) && define( 'ENJOYINSTAGRAM_VERSION', '6.0.1' );
26
  ! defined( 'ENJOYINSTAGRAM_FILE' ) && define( 'ENJOYINSTAGRAM_FILE', __FILE__ );
27
  ! defined( 'ENJOYINSTAGRAM_URL' ) && define( 'ENJOYINSTAGRAM_URL', plugin_dir_url( __FILE__ ) );
28
  ! defined( 'ENJOYINSTAGRAM_DIR' ) && define( 'ENJOYINSTAGRAM_DIR', plugin_dir_path( __FILE__ ) );
11
  * Plugin Name: Enjoy Instagram
12
  * Plugin URI: https://www.mediabetaprojects.com/enjoy-instagram-premium/
13
  * Description: Instagram Responsive Images Gallery and Carousel, works with Shortcodes and Widgets.
14
+ * Version: 6.0.2
15
  * Requires at least: 4.0
16
  * Requires PHP: 7.2
17
  * Author: Mediabeta Srl
22
  * License URI: http://www.gnu.org/licenses/gpl-3.0.html
23
  */
24
 
25
+ ! defined( 'ENJOYINSTAGRAM_VERSION' ) && define( 'ENJOYINSTAGRAM_VERSION', '6.0.2' );
26
  ! defined( 'ENJOYINSTAGRAM_FILE' ) && define( 'ENJOYINSTAGRAM_FILE', __FILE__ );
27
  ! defined( 'ENJOYINSTAGRAM_URL' ) && define( 'ENJOYINSTAGRAM_URL', plugin_dir_url( __FILE__ ) );
28
  ! defined( 'ENJOYINSTAGRAM_DIR' ) && define( 'ENJOYINSTAGRAM_DIR', plugin_dir_path( __FILE__ ) );
includes/class.enjoyinstagram.php CHANGED
@@ -54,13 +54,13 @@ final class EnjoyInstagram {
54
  */
55
  private function __construct() {
56
  $this->_load_required();
57
- $this->_users = (array) get_option( 'enjoy_instagram_options', [] );
58
  do_action( 'enjoyinstagram_init' );
59
 
60
  // sync actions.
61
  add_action( 'init', [ $this, 'schedule_sync' ], 1 );
62
  add_filter( 'option_enjoyinstagram_images_captured', [ $this, 'force_image_captured' ] );
63
  add_filter( 'option_enjoy_instagram_options', [ $this, 'normalize_users' ] );
 
64
  }
65
 
66
  /**
54
  */
55
  private function __construct() {
56
  $this->_load_required();
 
57
  do_action( 'enjoyinstagram_init' );
58
 
59
  // sync actions.
60
  add_action( 'init', [ $this, 'schedule_sync' ], 1 );
61
  add_filter( 'option_enjoyinstagram_images_captured', [ $this, 'force_image_captured' ] );
62
  add_filter( 'option_enjoy_instagram_options', [ $this, 'normalize_users' ] );
63
+ $this->_users = (array) get_option( 'enjoy_instagram_options', [] );
64
  }
65
 
66
  /**
readme.txt CHANGED
@@ -4,8 +4,8 @@ Donate link: https://www.google.com/url?q=https%3A%2F%2Fwww.paypal.com%2Fcgi-bin
4
  Tags: instagram carousel, instagram, instagram feed, instagram widget, instagram grid
5
  Requires at least: 4.0
6
  Tested up to: 5.6
7
- Version: 6.0.1
8
- Stable tag: 6.0.1
9
  License: GPLv2 or later
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -210,6 +210,8 @@ In the Setting section yon can customize grid and/or Carousel view
210
  8. Front End View Example
211
 
212
  == Changelog ==
 
 
213
  = 6.0.1 =
214
  * Updated max image captured from 20 to 40.
215
  * Fix: different height of the images in the carousel which could occur in some circumstances.
4
  Tags: instagram carousel, instagram, instagram feed, instagram widget, instagram grid
5
  Requires at least: 4.0
6
  Tested up to: 5.6
7
+ Version: 6.0.2
8
+ Stable tag: 6.0.2
9
  License: GPLv2 or later
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
11
 
210
  8. Front End View Example
211
 
212
  == Changelog ==
213
+ = 6.0.2 =
214
+ * fix: in some cases the photos were not shown.
215
  = 6.0.1 =
216
  * Updated max image captured from 20 to 40.
217
  * Fix: different height of the images in the carousel which could occur in some circumstances.
templates/shortcodes/carousel.php CHANGED
@@ -95,7 +95,7 @@ if ( isset( $settings['theme'] ) ) {
95
 
96
  <?php endif; ?>
97
  sw.imagesToLoad.forEach(function (img) {
98
- if (img.className === 'ig-img') {
99
  img.style.height = img.width + 'px';
100
  }
101
  })
95
 
96
  <?php endif; ?>
97
  sw.imagesToLoad.forEach(function (img) {
98
+ if (img.className.indexOf('ig-img') !== -1) {
99
  img.style.height = img.width + 'px';
100
  }
101
  })