Instagram Gallery - Version 2.5.9

Version Description

  • Fix. save new feed override last feed settings
Download this release

Release Info

Developer quadlayers
Plugin Icon 128x128 Instagram Gallery
Version 2.5.9
Comparing to
See all releases

Code changes from version 2.5.8 to 2.5.9

Files changed (3) hide show
  1. includes/ajax.php +1 -1
  2. insta-gallery.php +2 -2
  3. readme.txt +4 -1
includes/ajax.php CHANGED
@@ -186,7 +186,7 @@ if (!class_exists('QLIGG_AJAX')) {
186
 
187
  $instagram_feeds = get_option('insta_gallery_items', array());
188
 
189
- $item_id = isset($_REQUEST['item_id']) ? absint($_REQUEST['item_id']) : count($instagram_feeds) + 1;
190
 
191
  $instagram_feeds[$item_id] = $instagram_feed;
192
 
186
 
187
  $instagram_feeds = get_option('insta_gallery_items', array());
188
 
189
+ $item_id = isset($_REQUEST['item_id']) ? absint($_REQUEST['item_id']) : absint(key(array_slice($instagram_feeds, -1, 1, true))) + 1;
190
 
191
  $instagram_feeds[$item_id] = $instagram_feed;
192
 
insta-gallery.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Instagram Feed Gallery
4
  * Plugin URI: https://quadlayers.com/portfolio/instagram-gallery/
5
  * Description: Display beautifull and responsive galleries on your website from your Instagram feed account.
6
- * Version: 2.5.8
7
  * Author: Quadlayers
8
  * Author URI: https://quadlayers.com
9
  * License: GPL-2.0+
@@ -18,7 +18,7 @@ if (!defined('QLIGG_PLUGIN_NAME')) {
18
  define('QLIGG_PLUGIN_NAME', 'Instagram Feed Gallery');
19
  }
20
  if (!defined('QLIGG_PLUGIN_VERSION')) {
21
- define('QLIGG_PLUGIN_VERSION', '2.5.8');
22
  }
23
  if (!defined('QLIGG_PLUGIN_FILE')) {
24
  define('QLIGG_PLUGIN_FILE', __FILE__);
3
  * Plugin Name: Instagram Feed Gallery
4
  * Plugin URI: https://quadlayers.com/portfolio/instagram-gallery/
5
  * Description: Display beautifull and responsive galleries on your website from your Instagram feed account.
6
+ * Version: 2.5.9
7
  * Author: Quadlayers
8
  * Author URI: https://quadlayers.com
9
  * License: GPL-2.0+
18
  define('QLIGG_PLUGIN_NAME', 'Instagram Feed Gallery');
19
  }
20
  if (!defined('QLIGG_PLUGIN_VERSION')) {
21
+ define('QLIGG_PLUGIN_VERSION', '2.5.9');
22
  }
23
  if (!defined('QLIGG_PLUGIN_FILE')) {
24
  define('QLIGG_PLUGIN_FILE', __FILE__);
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://quadlayers.com/portfolio/instagram-gallery/
4
  Tags: instagram, instagram feed, instagram widget, instagram gallery, instagram pictures, gallery widget, pictures, carousel slider, image gallery, image slider
5
  Requires at least: 4.6
6
  Tested up to: 5.2.2
7
- Stable tag: 2.5.8
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -91,6 +91,9 @@ There may be some other plugins(like: fancybox, elementor) which also uses image
91
 
92
  == Changelog ==
93
 
 
 
 
94
  = 2.5.8 =
95
  * Fix. remove rating request non admin users
96
 
4
  Tags: instagram, instagram feed, instagram widget, instagram gallery, instagram pictures, gallery widget, pictures, carousel slider, image gallery, image slider
5
  Requires at least: 4.6
6
  Tested up to: 5.2.2
7
+ Stable tag: 2.5.9
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
91
 
92
  == Changelog ==
93
 
94
+ = 2.5.9 =
95
+ * Fix. save new feed override last feed settings
96
+
97
  = 2.5.8 =
98
  * Fix. remove rating request non admin users
99