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

Version Description

  • fix: grid error with nolink option
  • fix: reset default options after plugin activation
Download this release

Release Info

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

Code changes from version 6.0.3 to 6.0.4

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.3
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.3' );
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.4
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.4' );
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-activation.php CHANGED
@@ -37,7 +37,7 @@ final class EI_Activation {
37
 
38
  foreach ( $plugin_options as $options ) {
39
  foreach ( $options as $option_id => $default_value ) {
40
- add_option( $option_id, $default_value );
41
  }
42
  }
43
  }
37
 
38
  foreach ( $plugin_options as $options ) {
39
  foreach ( $options as $option_id => $default_value ) {
40
+ update_option( $option_id, $default_value );
41
  }
42
  }
43
  }
readme.txt CHANGED
@@ -3,9 +3,9 @@ Contributors: mediabeta, provisiva
3
  Donate link: https://www.google.com/url?q=https%3A%2F%2Fwww.paypal.com%2Fcgi-bin%2Fwebscr%3Fcmd%3D_s-xclick%26hosted_button_id%3D8MXZ37DWHAX46&sa=D&sntz=1&usg=AFQjCNFHixLdowdc2AAEXDYmM9tQBl-TXQ
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.3
8
- Stable tag: 6.0.3
9
  License: GPLv2 or later
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -210,6 +210,9 @@ In the Setting section yon can customize grid and/or Carousel view
210
  8. Front End View Example
211
 
212
  == Changelog ==
 
 
 
213
  = 6.0.3 =
214
  * fix: carousel error when the shortcode content is lazy-loaded
215
  = 6.0.2 =
3
  Donate link: https://www.google.com/url?q=https%3A%2F%2Fwww.paypal.com%2Fcgi-bin%2Fwebscr%3Fcmd%3D_s-xclick%26hosted_button_id%3D8MXZ37DWHAX46&sa=D&sntz=1&usg=AFQjCNFHixLdowdc2AAEXDYmM9tQBl-TXQ
4
  Tags: instagram carousel, instagram, instagram feed, instagram widget, instagram grid
5
  Requires at least: 4.0
6
+ Tested up to: 5.7
7
+ Version: 6.0.4
8
+ Stable tag: 6.0.4
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.4 =
214
+ * fix: grid error with nolink option
215
+ * fix: reset default options after plugin activation
216
  = 6.0.3 =
217
  * fix: carousel error when the shortcode content is lazy-loaded
218
  = 6.0.2 =
templates/shortcodes/grid.php CHANGED
@@ -58,7 +58,7 @@ $is_premium = enjoyinstagram()->is_premium();
58
  animSpeed: <?php echo $settings['animation_speed']; ?>,
59
  interval: <?php echo $settings['interval']; ?>,
60
  onhover: <?php echo $settings['onhover']; ?>,
61
- preventClick: false,
62
  w1024: {
63
  rows: <?php echo $is_premium ? $settings['rows_1024px'] : $settings['rows']; ?>,
64
  columns: <?php echo $is_premium ? $settings['cols_1024px'] : $settings['cols']; ?>
@@ -136,7 +136,7 @@ $is_premium = enjoyinstagram()->is_premium();
136
  $link_attr['href'] = $link_attr['data-link'];
137
  break;
138
  case 'nolink':
139
- $link_attr = [];
140
  break;
141
  case 'altro':
142
  $link_attr['data-author-username'] = isset( $entry['user']['username'] ) ? esc_attr( $entry['user']['username'] ) : '';
58
  animSpeed: <?php echo $settings['animation_speed']; ?>,
59
  interval: <?php echo $settings['interval']; ?>,
60
  onhover: <?php echo $settings['onhover']; ?>,
61
+ preventClick: <?php echo 'nolink' === $settings['link'] ? 'true' : 'false'; ?>,
62
  w1024: {
63
  rows: <?php echo $is_premium ? $settings['rows_1024px'] : $settings['rows']; ?>,
64
  columns: <?php echo $is_premium ? $settings['cols_1024px'] : $settings['cols']; ?>
136
  $link_attr['href'] = $link_attr['data-link'];
137
  break;
138
  case 'nolink':
139
+ $link_attr = [ 'href' => '#' ];
140
  break;
141
  case 'altro':
142
  $link_attr['data-author-username'] = isset( $entry['user']['username'] ) ? esc_attr( $entry['user']['username'] ) : '';