Instagram Gallery - Version 2.5.8

Version Description

  • Fix. remove rating request non admin users
Download this release

Release Info

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

Code changes from version 2.5.7 to 2.5.8

Files changed (3) hide show
  1. assets/img/logo.jpg +0 -0
  2. insta-gallery.php +8 -10
  3. readme.txt +4 -1
assets/img/logo.jpg CHANGED
Binary file
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.7
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.7');
22
  }
23
  if (!defined('QLIGG_PLUGIN_FILE')) {
24
  define('QLIGG_PLUGIN_FILE', __FILE__);
@@ -58,18 +58,16 @@ if (!class_exists('QLIGG')) {
58
  protected static $instance;
59
 
60
  function ajax_dismiss_notice() {
61
- if (current_user_can('manage_options')) {
62
 
63
- if (!empty($_REQUEST) && check_admin_referer('qligg_dismiss_notice', 'ig_nonce')) {
64
 
65
- if ($notice_id = ( isset($_REQUEST['notice_id']) ) ? sanitize_key($_REQUEST['notice_id']) : '') {
66
 
67
- update_user_meta(get_current_user_id(), $notice_id, true);
68
 
69
- wp_send_json($notice_id);
70
- }
71
- }
72
  }
 
73
  wp_die();
74
  }
75
 
@@ -108,7 +106,7 @@ if (!class_exists('QLIGG')) {
108
  data: {
109
  notice_id: notice_id,
110
  action: 'qligg_dismiss_notice',
111
- ig_nonce: '<?php echo wp_create_nonce('qligg_dismiss_notice'); ?>'
112
  },
113
  success: function (response) {
114
  console.log(response);
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
  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__);
58
  protected static $instance;
59
 
60
  function ajax_dismiss_notice() {
 
61
 
62
+ if (check_admin_referer('qligg_dismiss_notice', 'nonce') && isset($_REQUEST['notice_id'])) {
63
 
64
+ $notice_id = sanitize_key($_REQUEST['notice_id']);
65
 
66
+ update_user_meta(get_current_user_id(), $notice_id, true);
67
 
68
+ wp_send_json($notice_id);
 
 
69
  }
70
+
71
  wp_die();
72
  }
73
 
106
  data: {
107
  notice_id: notice_id,
108
  action: 'qligg_dismiss_notice',
109
+ nonce: '<?php echo wp_create_nonce('qligg_dismiss_notice'); ?>'
110
  },
111
  success: function (response) {
112
  console.log(response);
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.7
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.7 =
95
  * Fix. Instagram Feed Gallery magnific popup styles override
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.8
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.8 =
95
+ * Fix. remove rating request non admin users
96
+
97
  = 2.5.7 =
98
  * Fix. Instagram Feed Gallery magnific popup styles override
99