WD Instagram Feed – Instagram Gallery - Version 1.4.30

Version Description

Fixed: Security issue.

Download this release

Release Info

Developer 10web
Plugin Icon 128x128 WD Instagram Feed – Instagram Gallery
Version 1.4.30
Comparing to
See all releases

Code changes from version 1.4.29 to 1.4.30

Files changed (4) hide show
  1. config.php +1 -1
  2. frontend/shortcode.php +11 -19
  3. readme.txt +4 -1
  4. wd-instagram-feed.php +1 -1
config.php CHANGED
@@ -3,7 +3,7 @@ if ( !defined('ABSPATH') ) {
3
  exit;
4
  }
5
 
6
- define('WDI_VERSION', '1.4.29');
7
  define('WDI_IS_FREE', TRUE);
8
  define('WDI_PREFIX', 'wdi');
9
  define('WDI_DIR', WP_PLUGIN_DIR . "/" . plugin_basename(dirname(__FILE__)));
3
  exit;
4
  }
5
 
6
+ define('WDI_VERSION', '1.4.30');
7
  define('WDI_IS_FREE', TRUE);
8
  define('WDI_PREFIX', 'wdi');
9
  define('WDI_DIR', WP_PLUGIN_DIR . "/" . plugin_basename(dirname(__FILE__)));
frontend/shortcode.php CHANGED
@@ -199,7 +199,7 @@ function wdi_feed($atts, $widget_params = '') {
199
  }
200
 
201
  }
202
- // @TODO. All views pass_feed_data_to_js(), add_theme_styles(), generate_feed_styles() functions can be moved here
203
  // model and $feed_row - available here
204
 
205
  if ( isset($wdi_options['wdi_custom_css']) ) {
@@ -352,7 +352,7 @@ function wdi_load_frontend_scripts_ajax($additional_scripts = array(), $addition
352
  }
353
 
354
  if(!empty($wp_styles->registered[$handle]->extra['data'])) {
355
- echo '<script>' . $wp_styles->registered[$handle]->extra['data'] . '</script>';
356
  }
357
 
358
  if(strpos($wp_styles->registered[$handle]->src, '/wp-includes/js/') === 0) {
@@ -377,23 +377,15 @@ function wdi_token_flag() {
377
 
378
  function wdi_feed_frontend_messages() {
379
  $manage_options_user = current_user_can('manage_options');
380
- $js_error_message = __('Something is wrong.', 'wd-instagram-feed');
381
- $token_error_message = __('Instagram token error.', 'wd-instagram-feed');
382
- $error_style = '';
383
- $private_feed_error_1 = '';
384
- $private_feed_error_2 = '';
385
- $private_feed_error_3 = '';
386
  if ( $manage_options_user ) {
387
- $js_error_message = __("Something is wrong. Response takes too long or there is JS error. Press Ctrl+Shift+J or Cmd+Shift+J on a Mac to see error in console or ask for <a class='wdi_error_link' href='https://wordpress.org/support/plugin/wd-instagram-feed' target='_blank'>free support</a>.", 'wd-instagram-feed');
388
- $token_error_message = __("Instagram token is invalid or expired. Please <a href='" . site_url() . "/wp-admin/admin.php?page=wdi_settings' target='_blank'>reset token</a> and sign-in again to get new one.");
389
- $error_style = 'style="color: #cc0000; text-align: center;"';
390
- $private_feed_error_1 = __('Admin warning: there is one or more private user in this feed', 'wd-instagram-feed');
391
- $private_feed_error_2 = __('Their media won\'t be displayed.', 'wd-instagram-feed');
392
- $private_feed_error_3 = '(<span class="wdi_private_feed_names"></span>). ';
 
 
 
393
  }
394
- $ajax_error_message = (defined('DOING_AJAX') && DOING_AJAX) ? __("Warning: Instagram Feed is loaded using AJAX request. It might not display properly.", "wd-instagram-feed") : '';
395
- echo '<div ' . str_replace('&quot;', '"', esc_html($error_style)) . ' class="wdi_js_error">' . strip_tags($js_error_message . '<br/>' . $ajax_error_message, "<br><a><span>") . '</div>';
396
- echo '<div ' . str_replace('&quot;', '"', esc_html($error_style)) . ' class="wdi_token_error wdi_hidden">' . strip_tags($token_error_message, "<br><a><span>") . '</div>';
397
- echo '<div ' . str_replace('&quot;', '"', esc_html($error_style)) . ' class="wdi_private_feed_error wdi_hidden"><span>' . strip_tags($private_feed_error_1 . $private_feed_error_3 . $private_feed_error_2, "<br><a><span>") . '</span></div>';
398
- echo '<div class="wdi_check_fontawesome wdi_hidden"><i class="tenweb-i tenweb-i-instagram""></i></div>';
399
  }
199
  }
200
 
201
  }
202
+ // @TODO. All views pass_feed_data_to_js(), add_theme_styles(), generate_feed_styles() functions can be moved here
203
  // model and $feed_row - available here
204
 
205
  if ( isset($wdi_options['wdi_custom_css']) ) {
352
  }
353
 
354
  if(!empty($wp_styles->registered[$handle]->extra['data'])) {
355
+ echo '<script>' . esc_js($wp_styles->registered[$handle]->extra['data']) . '</script>';
356
  }
357
 
358
  if(strpos($wp_styles->registered[$handle]->src, '/wp-includes/js/') === 0) {
377
 
378
  function wdi_feed_frontend_messages() {
379
  $manage_options_user = current_user_can('manage_options');
 
 
 
 
 
 
380
  if ( $manage_options_user ) {
381
+ echo '<div style="color: #cc0000; text-align: center;" class="wdi_js_error">' . __("Something is wrong. Response takes too long or there is JS error. Press Ctrl+Shift+J or Cmd+Shift+J on a Mac to see error in console or ask for <a class='wdi_error_link' href='https://wordpress.org/support/plugin/wd-instagram-feed' target='_blank'>free support</a>.", 'wd-instagram-feed') . '<br/>' . (defined('DOING_AJAX') && DOING_AJAX) ? __("Warning: Instagram Feed is loaded using AJAX request. It might not display properly.", "wd-instagram-feed") : '' . '</div>';
382
+ echo '<div style="color: #cc0000; text-align: center;" class="wdi_token_error wdi_hidden">' . __("Instagram token is invalid or expired. Please <a href='" . site_url() . "/wp-admin/admin.php?page=wdi_settings' target='_blank'>reset token</a> and sign-in again to get new one.") . '</div>';
383
+ echo '<div style="color: #cc0000; text-align: center;" class="wdi_private_feed_error wdi_hidden"><span>' . __('Admin warning: there is one or more private user in this feed', 'wd-instagram-feed') . '(<span class="wdi_private_feed_names"></span>). ' . __('Their media won\'t be displayed.', 'wd-instagram-feed') . '</span></div>';
384
+ echo '<div class="wdi_check_fontawesome wdi_hidden"><i class="tenweb-i tenweb-i-instagram""></i></div>';
385
+ } else {
386
+ echo '<div class="wdi_js_error">' . __('Something is wrong.', 'wd-instagram-feed') . '<br/>' . (defined('DOING_AJAX') && DOING_AJAX) ? __("Warning: Instagram Feed is loaded using AJAX request. It might not display properly.", "wd-instagram-feed") : '' . '</div>';
387
+ echo '<div class="wdi_token_error wdi_hidden">' . __('Instagram token error.', 'wd-instagram-feed') . '</div>';
388
+ echo '<div class="wdi_private_feed_error wdi_hidden"><span></span></div>';
389
+ echo '<div class="wdi_check_fontawesome wdi_hidden"><i class="tenweb-i tenweb-i-instagram""></i></div>';
390
  }
 
 
 
 
 
391
  }
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: custom instagram feed, feed, instagram, hashtag, Instagram feed, instagram
4
  Requires at least: 3.9
5
  Requires PHP: 5.2
6
  Tested up to: 5.8
7
- Stable tag: 1.4.29
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -505,6 +505,9 @@ Please make sure you don't have any important information before you proceed.
505
  10Web Social Photo Feed for Instagram plugin uses Instagram API on website front end. You have to authorize the plugin via sign in to get data from Instagram on your behalf. The plugin does not send any user’s data to Instagram. All the data received from Instagram via API is cached in WordPress database for some short customizable period to provide front end optimization. You can delete or update cached data. Instagram saves some cookies in browsers of website visitors via API data. These cookies are mostly used for security purposes. They are regulated under terms of Instagram’s privacy policy https://instagram.com/legal/privacy. The plugin asks for your consent to collect site administrator’s email address and site URL to offer customer support, deals and discounts on premium products and more.
506
 
507
  == Changelog ==
 
 
 
508
  = 1.4.29 =
509
  Fixed: Security issue.
510
 
4
  Requires at least: 3.9
5
  Requires PHP: 5.2
6
  Tested up to: 5.8
7
+ Stable tag: 1.4.30
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
505
  10Web Social Photo Feed for Instagram plugin uses Instagram API on website front end. You have to authorize the plugin via sign in to get data from Instagram on your behalf. The plugin does not send any user’s data to Instagram. All the data received from Instagram via API is cached in WordPress database for some short customizable period to provide front end optimization. You can delete or update cached data. Instagram saves some cookies in browsers of website visitors via API data. These cookies are mostly used for security purposes. They are regulated under terms of Instagram’s privacy policy https://instagram.com/legal/privacy. The plugin asks for your consent to collect site administrator’s email address and site URL to offer customer support, deals and discounts on premium products and more.
506
 
507
  == Changelog ==
508
+ = 1.4.30 =
509
+ Fixed: Security issue.
510
+
511
  = 1.4.29 =
512
  Fixed: Security issue.
513
 
wd-instagram-feed.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: 10Web Social Photo Feed
4
  * Plugin URI: https://10web.io/plugins/wordpress-instagram-feed/?utm_source=instagram_feed&utm_medium=free_plugin
5
  * Description: 10Web Social Photo 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.4.29
7
  * Author: 10Web
8
  * Author URI: https://10Web.io/plugins/?utm_source=instagram_feed&utm_medium=free_plugin
9
  * License: GPLv2 or later
3
  * Plugin Name: 10Web Social Photo Feed
4
  * Plugin URI: https://10web.io/plugins/wordpress-instagram-feed/?utm_source=instagram_feed&utm_medium=free_plugin
5
  * Description: 10Web Social Photo 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.4.30
7
  * Author: 10Web
8
  * Author URI: https://10Web.io/plugins/?utm_source=instagram_feed&utm_medium=free_plugin
9
  * License: GPLv2 or later