WD Instagram Feed – Instagram Gallery - Version 1.2.7

Version Description

Changed: Show notification to install Backup WD plugin only on plugin pages

Download this release

Release Info

Developer webdorado
Plugin Icon 128x128 WD Instagram Feed – Instagram Gallery
Version 1.2.7
Comparing to
See all releases

Code changes from version 1.2.6 to 1.2.7

admin/controllers/WDIControllerUninstall_wdi.php CHANGED
@@ -98,7 +98,6 @@ class WDIControllerUninstall_wdi{
98
  else{
99
  $this->already_uninstalled();
100
  };
101
- delete_option("wdi_bk_notice_status");
102
  delete_option(WDI_OPT);
103
 
104
  $sample_post_id = get_option('wdi_sample_feed_post_id');
98
  else{
99
  $this->already_uninstalled();
100
  };
 
101
  delete_option(WDI_OPT);
102
 
103
  $sample_post_id = get_option('wdi_sample_feed_post_id');
changelog.txt ADDED
@@ -0,0 +1,189 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ = 1.2.7 =
2
+ Changed: Show notification to install Backup WD plugin only on plugin pages
3
+
4
+ = 1.2.6 =
5
+ Change: Introduction of Backup WD plugin
6
+
7
+ = 1.2.5 =
8
+ Change: "create_function" is not used anymore
9
+
10
+ = 1.2.4 =
11
+ Fixed: Compatibility issue with Better WordPress Minify plugin, thanks to @amityweb for bug report
12
+
13
+ = 1.2.3 =
14
+ Change: WD library updated to version 1.0.11
15
+ Fixed: Error message when editing feed and token is expired
16
+
17
+ = 1.2.2 =
18
+ New: Redirection to custom URL
19
+
20
+ = 1.2.1 =
21
+ New: Option to disable loading of new images in feed
22
+
23
+ = 1.2.0 =
24
+ New: Default feed
25
+ Fixed: Infinite scroll triggering (PRO)
26
+ Fixed: "No media in feed" message on mobile masonry feed
27
+ Fixed: Minor style conflicts with some themes
28
+
29
+ = 1.1.30 =
30
+ Changed: Frontend styles optimized, loads faster now
31
+
32
+ = 1.1.29 =
33
+ Fixed: Display only published feeds in feeds selector popup for shortcode
34
+ Changed: UX improvement - no error message when user first inserts a widget then creates feeds
35
+
36
+ = 1.1.28 =
37
+ Fixed: Conflict with some themes
38
+
39
+ = 1.1.27 =
40
+ Fixed: Overriding window.onload function
41
+ Changed: Some strings on frontend are translatable now
42
+
43
+ = 1.1.26 =
44
+ Fixed: Conflict with Beaver Builder
45
+ Fixed: Frontend error messages in old Chrome and Safari browsers
46
+ Changed: Translations hosted on WordPress.org
47
+
48
+ = 1.1.25 =
49
+ New: UX improvements: when authorizing and editing feeds
50
+ Changed: JavaScript error notices on frontend
51
+ Fixed: Updates page restored (PRO)
52
+ Fixed: Deactivation popup in uninstall page (PRO)
53
+ Fixed: Subscribe after uninstall
54
+
55
+ = 1.1.24 =
56
+ New: Overview page
57
+ Changed: Deactivation
58
+
59
+ = 1.1.23 =
60
+ Fixed: cropping of "landscape" images in thumbnails layout
61
+
62
+ = 1.1.22 =
63
+ New: message displayed on frontend if feed has no media
64
+ Fixed: JS errors for media with Instagram's new "Slideshow" feature. This feature is not supported by Instagram's API yet.
65
+ Changed: Errors by plugin and Instagram API are alerted in frontend only for admins, otherwise output the message to the Web Console
66
+ Changed: Custom attribute "wdi_media_user" added to media containers in frontend. Useful for adding different event listeners, e.g. custom redirects for every user's media.
67
+ Changed: Minor style conflicts fixed
68
+
69
+ = 1.1.21 =
70
+ New: Three new plugins added to featured plugins list: Ad Manager WD, Youtube WD and Staff Team WD
71
+ Fixed: Colors and opacities of share buttons in lightbox (PRO)
72
+
73
+ = 1.1.20 =
74
+ New: Instagram feed displayed in AJAX-loaded content. AJAX request callback needs to call wp_footer() in the end.
75
+
76
+ = 1.1.19 =
77
+ Fixed: Strange bug in Instagram API when user feed pagination is null, causing JS errors in frontend
78
+
79
+ = 1.1.18 =
80
+ Fixed: Frontend filter colors (PRO)
81
+ Changed: Featured plugins, brand new Mailchimp Forms WD plugin added
82
+
83
+ = 1.1.17 =
84
+ New: Option in feed settings to show small size images and low-bandwidth videos when viewed in mobile devices
85
+ Fixed: Escaping in custom JS
86
+ Change: WP 4.7 compatibility - language of frontend content in AJAX response
87
+
88
+ = 1.1.16 =
89
+ Fixed: Unicode "paragraph separator" symbol in media caption crashes lightbox
90
+ Fixed: Javascript error in admin feed page and styling issue in lightbox because of some non-standard themes
91
+
92
+ = 1.1.15 =
93
+ New: Show hashtag media number in header
94
+ Fixed: Scripts dependency on underscore.js
95
+ Fixed: Compatibility issues with Yoast SEO
96
+
97
+ = 1.1.14 =
98
+ Fixed: Single user bio not shown
99
+ Changed: Plugin logo
100
+ Changed: Featured plugins logos
101
+
102
+ = 1.1.13 =
103
+ Fixed: Changes in database after plugin version update via FTP or AJAX requests with silent activation
104
+
105
+ = 1.1.12 =
106
+ New: Feed based on liked media (Pro)
107
+ Fixed: Hidden media in last page
108
+ Fixed: Minor issues
109
+
110
+ = 1.1.11 =
111
+ Added: Setting to show media descriptions in widget mode (Pro)
112
+ Fixed: Untranslatable strings in widget editor
113
+ Change: Featured plugins list
114
+
115
+ = 1.1.10 =
116
+ Added: New text in uninstall page
117
+ Added: Featured plugins admin page
118
+ Fixed: Video not centering issue on blogstyle
119
+ Added: Swedish translations
120
+
121
+ = 1.1.9 =
122
+ New: Option to set minimal user role for adding and managing feeds and themes
123
+ Fixed: Masonry feed thumbnails overlay opacity (Pro)
124
+
125
+ = 1.1.8 =
126
+ Changed: Font-Awesome updated to version 4.6.3
127
+
128
+ = 1.1.7 =
129
+ New: Featured themes admin page
130
+ Fixed: Javascript error in hashtag feed
131
+
132
+ = 1.1.6 =
133
+ Change: Added compatibility with "All in one SEO pack" and other plugins running shortcodes in page head
134
+
135
+ = 1.1.5 =
136
+ Fixed: javascript error on firefox and safari
137
+
138
+ = 1.1.4 =
139
+ Fixed: Error handling in case of wrong access_token
140
+ Fixed: Image description not opening after pagination (Pro)
141
+ Fixed: Do not show load more button if feed media are finished
142
+ Fixed: Infinite scroll triggering bug (Pro)
143
+
144
+ = 1.1.3 =
145
+ New: French translation (Thanks to Guillaume Barjou)
146
+ New: English US and UK translation files. Edit them to change default strings
147
+ Fixed: Image sizes and overwflows in thumbnails layout
148
+ Fixed: Lightbox filmstrip thumb styles (Pro)
149
+
150
+ = 1.1.2 =
151
+ Fixed: Bug when saving theme data to some MySQL 5.6 databases
152
+ Changed: Pagination of hashtag feeds restored
153
+ Changed: Check and get user id on frontend if empty for some unknown reason
154
+
155
+ = 1.1.1 =
156
+ fix: bug when duplicating feeds
157
+
158
+ = 1.1.0 =
159
+ new: Instagram new API
160
+ new: Spanish translation (Thanks to Alexandro Lacadena Gomez)
161
+
162
+ = 1.0.10 =
163
+ Temporarily disable pagination in hashtag based feeds
164
+ Updated Russian Translations ( Thanks to Alex Petrin )
165
+
166
+ = 1.0.9 =
167
+ Bug fixes
168
+
169
+ = 1.0.8 =
170
+ Show video play button when redirect is enabled
171
+
172
+ = 1.0.7 =
173
+ new: Image Hover Effects
174
+
175
+ = 1.0.6 =
176
+ new: Conditional Filters (Pro)
177
+ new: Option for displaying username in masonry/thumbnails view (Pro)
178
+ new: Russian translation (Thanks to Ruslan Tertyshny).
179
+
180
+ = 1.0.2 =
181
+ fix: PHP error after plugin update
182
+
183
+ = 1.0.1 =
184
+ fix: PHP 5.3 compatibility
185
+ fix: video redirect bug
186
+ change: user info styles
187
+
188
+ = 1.0.0 =
189
+ Initial version
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://web-dorado.com/products/wordpress-instagram-feed-wd.html
4
  Tags: custom instagram feed, feed, instagram, hashtag, Instagram feed, instagram gallery, instagram posts, Instagram images, Instagram photos, lightbox, photos,instagram account
5
  Requires at least: 3.9
6
  Tested up to: 4.8
7
- Stable tag: 1.2.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -110,6 +110,9 @@ After downloading the ZIP file of the Instagram Feed WD plugin,
110
 
111
  == Changelog ==
112
 
 
 
 
113
  = 1.2.6 =
114
  Change: Introduction of Backup WD plugin
115
 
4
  Tags: custom instagram feed, feed, instagram, hashtag, Instagram feed, instagram gallery, instagram posts, Instagram images, Instagram photos, lightbox, photos,instagram account
5
  Requires at least: 3.9
6
  Tested up to: 4.8
7
+ Stable tag: 1.2.7
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
110
 
111
  == Changelog ==
112
 
113
+ = 1.2.7 =
114
+ Changed: Show notification to install Backup WD plugin only on plugin pages
115
+
116
  = 1.2.6 =
117
  Change: Introduction of Backup WD plugin
118
 
wd-instagram-feed.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Instagram Feed WD
4
  Plugin URI: https://web-dorado.com/products/wordpress-instagram-feed-wd.html
5
  Description: WD Instagram Feed is a user-friendly tool for displaying user or hashtag-based feeds on your website. You can create feeds with one of the available layouts. It allows displaying image metadata, open up images in lightbox, download them and even share in social networking websites.
6
- Version: 1.2.6
7
  Author: WebDorado
8
  Author URI: https://web-dorado.com
9
  License: GPLv2 or later
@@ -21,7 +21,7 @@ define("WDI_META", "_".WDI_VAR."_meta");
21
  //define("wdi",'wdi');
22
  define('WDI_FEED_TABLE','wdi_feeds');
23
  define('WDI_THEME_TABLE','wdi_themes');
24
- define('WDI_VERSION','1.2.6');
25
  define('WDI_IS_PRO','false');
26
 
27
 
@@ -658,29 +658,39 @@ function wdi_wd_lib_init(){
658
 
659
 
660
  }
661
- if (!function_exists('wd_bp_install_notice')) {
662
- $wd_bp_plugin_url = WDI_URL;
663
- function wd_bp_script_style() {
664
- global $wd_bp_plugin_url;
 
 
 
 
665
  wp_enqueue_script('wd_bck_install', $wd_bp_plugin_url . '/js/wd_bp_install.js', array('jquery'));
666
  wp_enqueue_style('wd_bck_install', $wd_bp_plugin_url . '/css/wd_bp_install.css');
667
  }
668
- add_action('admin_enqueue_scripts', 'wd_bp_script_style');
669
 
670
  /**
671
  * Show notice to install backup plugin
672
  */
673
- function wd_bp_install_notice() {
674
- global $wd_bp_plugin_url;
 
 
 
 
 
 
675
  $prefix = 'wdi';
676
- $meta_value = get_option('wdi_bk_notice_status');
677
  if ($meta_value === '' || $meta_value === false) {
678
  ob_start();
679
  ?>
680
  <div class="notice notice-info" id="wd_bp_notice_cont">
681
  <p>
682
  <img id="wd_bp_logo_notice" src="<?php echo $wd_bp_plugin_url . '/images/logo.png'; ?>">
683
- <?php _e("Hey! Install brand new FREE", $prefix) ?>
684
  <a href="https://wordpress.org/plugins/backup-wd/" title="<?php _e("More details", $prefix) ?>"
685
  target="_blank"><?php _e("Backup WD", $prefix) ?></a>
686
  <?php _e("plugin to keep your data and website safe.", $prefix) ?>
@@ -698,8 +708,8 @@ if (!function_exists('wd_bp_install_notice')) {
698
  }
699
  }
700
 
701
- if (!is_dir(plugin_dir_path(__DIR__) . 'backup-wd')) {
702
- add_action('admin_notices', 'wd_bp_install_notice');
703
  }
704
 
705
  /**
@@ -708,10 +718,10 @@ if (!function_exists('wd_bp_install_notice')) {
708
  * empty: notice,
709
  * 1 : never show again
710
  */
711
- function wd_bp_install_notice_status() {
712
- update_option('wdi_bk_notice_status', '1', 'no');
713
  }
714
- add_action('wp_ajax_wd_bp_dismiss', 'wd_bp_install_notice_status');
715
  }
716
 
717
 
3
  Plugin Name: Instagram Feed WD
4
  Plugin URI: https://web-dorado.com/products/wordpress-instagram-feed-wd.html
5
  Description: WD Instagram Feed is a user-friendly tool for displaying user or hashtag-based feeds on your website. You can create feeds with one of the available layouts. It allows displaying image metadata, open up images in lightbox, download them and even share in social networking websites.
6
+ Version: 1.2.7
7
  Author: WebDorado
8
  Author URI: https://web-dorado.com
9
  License: GPLv2 or later
21
  //define("wdi",'wdi');
22
  define('WDI_FEED_TABLE','wdi_feeds');
23
  define('WDI_THEME_TABLE','wdi_themes');
24
+ define('WDI_VERSION','1.2.7');
25
  define('WDI_IS_PRO','false');
26
 
27
 
658
 
659
 
660
  }
661
+ if (!function_exists('wdi_wd_bp_install_notice')) {
662
+
663
+ if(get_option('wds_bk_notice_status')==='' || get_option('wds_bk_notice_status')==='1'){
664
+ return;
665
+ }
666
+
667
+ function wdi_wd_bp_script_style() {
668
+ $wd_bp_plugin_url = WDI_URL;
669
  wp_enqueue_script('wd_bck_install', $wd_bp_plugin_url . '/js/wd_bp_install.js', array('jquery'));
670
  wp_enqueue_style('wd_bck_install', $wd_bp_plugin_url . '/css/wd_bp_install.css');
671
  }
672
+ add_action('admin_enqueue_scripts', 'wdi_wd_bp_script_style');
673
 
674
  /**
675
  * Show notice to install backup plugin
676
  */
677
+ function wdi_wd_bp_install_notice() {
678
+ $wd_bp_plugin_url = WDI_URL;
679
+
680
+ $screen = get_current_screen();
681
+ if($screen->id != "instagram-feed-wd_page_wdi_licensing" && $screen->id != "toplevel_page_wdi_feeds" && $screen->id != "instagram-feed-wd_page_wdi_themes" && $screen->id != "instagram-feed-wd_page_wdi_settings" && $screen->id != "instagram-feed-wd_page_wdi_uninstall" && $screen->id != "instagram-feed-wd_page_overview_wdi" && $screen->id != "instagram-feed-wd_page_wdi_updates" ){
682
+ return;
683
+ }
684
+
685
  $prefix = 'wdi';
686
+ $meta_value = get_option('wd_bk_notice_status');
687
  if ($meta_value === '' || $meta_value === false) {
688
  ob_start();
689
  ?>
690
  <div class="notice notice-info" id="wd_bp_notice_cont">
691
  <p>
692
  <img id="wd_bp_logo_notice" src="<?php echo $wd_bp_plugin_url . '/images/logo.png'; ?>">
693
+ <?php _e("Instagram Feed WD advises: Install brand new FREE", $prefix) ?>
694
  <a href="https://wordpress.org/plugins/backup-wd/" title="<?php _e("More details", $prefix) ?>"
695
  target="_blank"><?php _e("Backup WD", $prefix) ?></a>
696
  <?php _e("plugin to keep your data and website safe.", $prefix) ?>
708
  }
709
  }
710
 
711
+ if (!is_dir(plugin_dir_path(dirname(__FILE__)) . 'backup-wd')) {
712
+ add_action('admin_notices', 'wdi_wd_bp_install_notice');
713
  }
714
 
715
  /**
718
  * empty: notice,
719
  * 1 : never show again
720
  */
721
+ function wdi_wd_bp_install_notice_status() {
722
+ update_option('wd_bk_notice_status', '1', 'no');
723
  }
724
+ add_action('wp_ajax_wd_bp_dismiss', 'wdi_wd_bp_install_notice_status');
725
  }
726
 
727