Instagram Gallery - Version 2.4.2

Version Description

  • Improvement. Instagram Token validation alerts
Download this release

Release Info

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

Code changes from version 2.4.1 to 2.4.2

includes/ajax.php CHANGED
@@ -38,7 +38,7 @@ if (!class_exists('QLIGG_AJAX')) {
38
if (!empty($_REQUEST) && check_admin_referer('qligg_generate_token', 'ig_nonce')) {
39
40
if (empty($_REQUEST['ig_access_token'])) {
41
- wp_send_json_error(__('Invalid access token', 'insta-gallery'));
42
}
43
44
$access_token = sanitize_text_field($_REQUEST['ig_access_token']);
@@ -48,7 +48,7 @@ if (!class_exists('QLIGG_AJAX')) {
48
}
49
50
if (!$qligg_api->validate_token($access_token)) {
51
- wp_send_json_error(__('Invalid access token', 'insta-gallery'));
52
}
53
54
if (isset($qligg_token[$access_token_id[0]]) && $qligg_token[$access_token_id[0]] == $access_token) {
38
if (!empty($_REQUEST) && check_admin_referer('qligg_generate_token', 'ig_nonce')) {
39
40
if (empty($_REQUEST['ig_access_token'])) {
41
+ wp_send_json_error(__('Empty access token', 'insta-gallery'));
42
}
43
44
$access_token = sanitize_text_field($_REQUEST['ig_access_token']);
48
}
49
50
if (!$qligg_api->validate_token($access_token)) {
51
+ wp_send_json_error($qligg_api->get_message());
52
}
53
54
if (isset($qligg_token[$access_token_id[0]]) && $qligg_token[$access_token_id[0]] == $access_token) {
includes/pages/token.php CHANGED
@@ -21,7 +21,7 @@ if (!defined('ABSPATH'))
21
<?php wp_nonce_field('qligg_update_token', 'ig_nonce'); ?>
22
</form>
23
</div>
24
- <?php if (count($qligg_token)) : ?>
25
<table class="widefat ig-table">
26
<thead>
27
<tr>
@@ -35,6 +35,7 @@ if (!defined('ABSPATH'))
35
</thead>
36
<tbody>
37
<?php
38
foreach ($qligg_token as $id => $access_token) {
39
$profile_info = qligg_get_user_profile($id);
40
?>
@@ -58,6 +59,7 @@ if (!defined('ABSPATH'))
58
</tr>
59
<?php
60
}
61
?>
62
</tbody>
63
</table>
@@ -115,7 +117,7 @@ if (!defined('ABSPATH'))
115
<span class="spinner"></span>
116
<button type="submit" class="btn-instagram secondary"><?php _e('Update', 'insta-gallery'); ?></button>
117
<span class="description">
118
- <?php //_e('Update settings and copy/paste generated shortcode in your post/pages or go to Widgets and use Instagram Gallery widget', 'insta-gallery'); ?>
119
</span>
120
</td>
121
</tr>
21
<?php wp_nonce_field('qligg_update_token', 'ig_nonce'); ?>
22
</form>
23
</div>
24
+ <?php if (is_array($qligg_token) && count($qligg_token)) : ?>
25
<table class="widefat ig-table">
26
<thead>
27
<tr>
35
</thead>
36
<tbody>
37
<?php
38
+ //if (count($qligg_token)) {
39
foreach ($qligg_token as $id => $access_token) {
40
$profile_info = qligg_get_user_profile($id);
41
?>
59
</tr>
60
<?php
61
}
62
+ //}
63
?>
64
</tbody>
65
</table>
117
<span class="spinner"></span>
118
<button type="submit" class="btn-instagram secondary"><?php _e('Update', 'insta-gallery'); ?></button>
119
<span class="description">
120
+ <?php //_e('Update settings and copy/paste generated shortcode in your post/pages or go to Widgets and use Instagram Gallery widget', 'insta-gallery'); ?>
121
</span>
122
</td>
123
</tr>
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.4.1
7
* Author: Instagram Feed
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 Gallery');
19
}
20
if (!defined('QLIGG_PLUGIN_VERSION')) {
21
- define('QLIGG_PLUGIN_VERSION', '2.4.1');
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.4.2
7
* Author: Instagram Feed
8
* Author URI: https://quadlayers.com
9
* License: GPL-2.0+
18
define('QLIGG_PLUGIN_NAME', 'Instagram Gallery');
19
}
20
if (!defined('QLIGG_PLUGIN_VERSION')) {
21
+ define('QLIGG_PLUGIN_VERSION', '2.4.2');
22
}
23
if (!defined('QLIGG_PLUGIN_FILE')) {
24
define('QLIGG_PLUGIN_FILE', __FILE__);
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: instagram, instagram feed, instagram widget, gallery widget, pictures, car
5
Requires at least: 4.6
6
Tested up to: 5.2
7
Requires PHP: 5.3
8
- Stable tag: 2.4.0
9
License: GPLv2 or later
10
License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
@@ -60,6 +60,9 @@ This error visible sometimes in PHP 7+ installations due to the missing CURL ext
60
61
== Changelog ==
62
63
= 2.4.1 =
64
* Fix. small CSS fixes
65
* Improvement. Instagram Premium compatibility
5
Requires at least: 4.6
6
Tested up to: 5.2
7
Requires PHP: 5.3
8
+ Stable tag: 2.4.2
9
License: GPLv2 or later
10
License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
60
61
== Changelog ==
62
63
+ = 2.4.2 =
64
+ * Improvement. Instagram Token validation alerts
65
+
66
= 2.4.1 =
67
* Fix. small CSS fixes
68
* Improvement. Instagram Premium compatibility