WD Instagram Feed – Instagram Gallery - Version 1.1.16

Version Description

Fixed: Unicode "paragraph separator" symbol in media caption crashes lightbox
Fixed: Javascript error in admin feed page and styling issue in lightbox because of some non-standard themes

Download this release

Release Info

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

Code changes from version 1.1.15 to 1.1.16

admin/views/WDIViewFeeds_wdi.php CHANGED
@@ -462,16 +462,17 @@ private function buildField($element,$feed_row=''){
462
 
463
  ?>
464
  <script>
 
465
  wdi_controller.instagram = new WDIInstagram();
466
  wdi_controller.feed_users = [];
467
  wdi_controller.instagram.addToken(<?php echo '"'.$wdi_options['wdi_access_token'].'"'; ?>);
468
- jQuery(document).ready(function(){
469
  wdi_controller.updateFeaturedImageSelect(<?php echo '"'.$wdi_options['wdi_user_name'].'"'; ?>,'add','selected');
470
- });
471
  <?php foreach ($users as $user) : ?>
472
  wdi_controller.makeInstagramUserRequest(<?php echo '"'.$user->username.'"'?>,true);
473
  <?php endforeach; ?>
474
-
475
  </script>
476
  <?php
477
 
462
 
463
  ?>
464
  <script>
465
+ jQuery(document).ready(function(){
466
  wdi_controller.instagram = new WDIInstagram();
467
  wdi_controller.feed_users = [];
468
  wdi_controller.instagram.addToken(<?php echo '"'.$wdi_options['wdi_access_token'].'"'; ?>);
469
+
470
  wdi_controller.updateFeaturedImageSelect(<?php echo '"'.$wdi_options['wdi_user_name'].'"'; ?>,'add','selected');
471
+
472
  <?php foreach ($users as $user) : ?>
473
  wdi_controller.makeInstagramUserRequest(<?php echo '"'.$user->username.'"'?>,true);
474
  <?php endforeach; ?>
475
+ });
476
  </script>
477
  <?php
478
 
frontend/views/WDIViewGalleryBox.php CHANGED
@@ -453,6 +453,9 @@ class WDIViewGalleryBox {
453
  -ms-user-select: none;
454
  user-select: none;
455
  }
 
 
 
456
  .wdi_comment_wrap {
457
  bottom: 0;
458
  left: 0;
@@ -973,7 +976,9 @@ class WDIViewGalleryBox {
973
  //sanitizing image description
974
  $instaDesc = $image_row->description;
975
  $instaDesc = preg_replace('/\\\\/', esc_html('&#92;'), $instaDesc);
976
- $instaDesc = str_replace(array("\r\n", "\n", "\r",'
'), esc_html(''), str_replace('"','\"',$instaDesc));
 
 
977
  $instaDesc = str_replace('#', ' #', $instaDesc);
978
  ?>
979
 
453
  -ms-user-select: none;
454
  user-select: none;
455
  }
456
+ .wdi_embed_frame{
457
+ text-align:center;
458
+ }
459
  .wdi_comment_wrap {
460
  bottom: 0;
461
  left: 0;
976
  //sanitizing image description
977
  $instaDesc = $image_row->description;
978
  $instaDesc = preg_replace('/\\\\/', esc_html('&#92;'), $instaDesc);
979
+ $instaDesc = str_replace(array("\r\n", "\n", "\r",'
'), esc_html(''), str_replace('"','\"',$instaDesc));
980
+ /*last two are ZWSP and P-SEP*/
981
+ $instaDesc = str_replace(array("\r\n", "\n", "\r",'
', '
'), esc_html(''), str_replace('"','\"',$instaDesc));
982
  $instaDesc = str_replace('#', ' #', $instaDesc);
983
  ?>
984
 
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, Instagram wall, lightbox, photos
5
  Requires at least: 3.9
6
  Tested up to: 4.6
7
- Stable tag: 1.1.15
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -107,6 +107,10 @@ After downloading the ZIP file of the Instagram Feed WD plugin,
107
 
108
  == Changelog ==
109
 
 
 
 
 
110
  = 1.1.15 =
111
  New: Show hashtag media number in header
112
  Fixed: Scripts dependency on underscore.js
4
  Tags: : custom instagram feed, feed, instagram, hashtag, Instagram feed, instagram gallery, instagram posts, Instagram images, Instagram photos, Instagram wall, lightbox, photos
5
  Requires at least: 3.9
6
  Tested up to: 4.6
7
+ Stable tag: 1.1.16
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
107
 
108
  == Changelog ==
109
 
110
+ = 1.1.16 =
111
+ Fixed: Unicode "paragraph separator" symbol in media caption crashes lightbox
112
+ Fixed: Javascript error in admin feed page and styling issue in lightbox because of some non-standard themes
113
+
114
  = 1.1.15 =
115
  New: Show hashtag media number in header
116
  Fixed: Scripts dependency on underscore.js
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.1.15
7
  Author: WebDorado
8
  Author URI: https://web-dorado.com
9
  License: GPLv2 or later
@@ -20,7 +20,7 @@ define("WDI_META", "_".WDI_VAR."_meta");
20
  //define("wdi",'wdi');
21
  define('WDI_FEED_TABLE','wdi_feeds');
22
  define('WDI_THEME_TABLE','wdi_themes');
23
- define('WDI_VERSION','1.1.15');
24
  define('WDI_IS_PRO','false');
25
 
26
 
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.1.16
7
  Author: WebDorado
8
  Author URI: https://web-dorado.com
9
  License: GPLv2 or later
20
  //define("wdi",'wdi');
21
  define('WDI_FEED_TABLE','wdi_feeds');
22
  define('WDI_THEME_TABLE','wdi_themes');
23
+ define('WDI_VERSION','1.1.16');
24
  define('WDI_IS_PRO','false');
25
 
26