Spotlight Social Media Feeds - Version 1.1.1

Version Description

(2022-07-14) =

Fixed - An error during import caused by null video URLs

Download this release

Release Info

Developer Mekku
Plugin Icon 128x128 Spotlight Social Media Feeds
Version 1.1.1
Comparing to
See all releases

Code changes from version 1.1 to 1.1.1

modules.core.php CHANGED
@@ -33,7 +33,6 @@ return [
33
  'integrations/caching' => new CacheIntegrationsModule(),
34
  'security' => new SecurityModule(),
35
  'user' => new UserModule(),
36
- 'analytics_survey' => new AnalyticsSurveyModule(),
37
  'leave_review' => new LeaveReviewModule(),
38
  'dev' => new DevModule(),
39
  ];
33
  'integrations/caching' => new CacheIntegrationsModule(),
34
  'security' => new SecurityModule(),
35
  'user' => new UserModule(),
 
36
  'leave_review' => new LeaveReviewModule(),
37
  'dev' => new DevModule(),
38
  ];
plugin.json CHANGED
@@ -1,7 +1,7 @@
1
  {
2
  "name": "Spotlight - Social Media Feeds",
3
  "description": "Easily embed beautiful Instagram feeds on your WordPress site.",
4
- "version": "1.1",
5
  "url": "https://spotlightwp.com",
6
  "author": "RebelCode",
7
  "authorUrl": "https://rebelcode.com",
1
  {
2
  "name": "Spotlight - Social Media Feeds",
3
  "description": "Easily embed beautiful Instagram feeds on your WordPress site.",
4
+ "version": "1.1.1",
5
  "url": "https://spotlightwp.com",
6
  "author": "RebelCode",
7
  "authorUrl": "https://rebelcode.com",
plugin.php CHANGED
@@ -5,7 +5,7 @@
5
  *
6
  * Plugin Name: Spotlight - Social Media Feeds
7
  * Description: Easily embed beautiful Instagram feeds on your WordPress site.
8
- * Version: 1.1
9
  * Author: RebelCode
10
  * Plugin URI: https://spotlightwp.com
11
  * Author URI: https://rebelcode.com
@@ -80,7 +80,7 @@ $bootstrapper = function (SlInstaRuntime $sli) use ($thisIsPro) {
80
  // The plugin name
81
  define('SL_INSTA_NAME', 'Spotlight - Social Media Feeds');
82
  // The plugin version
83
- define('SL_INSTA_VERSION', '1.1');
84
  // The path to the plugin's main file
85
  define('SL_INSTA_FILE', __FILE__);
86
  // The dir to the plugin's directory
5
  *
6
  * Plugin Name: Spotlight - Social Media Feeds
7
  * Description: Easily embed beautiful Instagram feeds on your WordPress site.
8
+ * Version: 1.1.1
9
  * Author: RebelCode
10
  * Plugin URI: https://spotlightwp.com
11
  * Author URI: https://rebelcode.com
80
  // The plugin name
81
  define('SL_INSTA_NAME', 'Spotlight - Social Media Feeds');
82
  // The plugin version
83
+ define('SL_INSTA_VERSION', '1.1.1');
84
  // The path to the plugin's main file
85
  define('SL_INSTA_FILE', __FILE__);
86
  // The dir to the plugin's directory
readme.txt CHANGED
@@ -5,8 +5,8 @@ Plugin URI: https://spotlightwp.com
5
  Tags: Instagram, Instagram feed, Instagram feeds, Instagram widget, Instagram embed, social media, social media feed, social media feeds, link in bio, Instagram gallery, shoppable Instagram, hashtag
6
  Requires at least: 5.7
7
  Requires PHP: 7.1
8
- Tested up to: 5.9
9
- Stable tag: 1.1
10
  License: GPLv3
11
 
12
  Easily display Instagram feeds in less than 7 clicks. Customizable, accessible, and SEO-friendly. The fastest-growing Instagram feed solution.
@@ -248,6 +248,11 @@ Yes, aside from the customisation options provided by Spotlight itself, the plug
248
 
249
  == Changelog ==
250
 
 
 
 
 
 
251
  = 1.1 (2022-07-07) =
252
 
253
  **Changed**
5
  Tags: Instagram, Instagram feed, Instagram feeds, Instagram widget, Instagram embed, social media, social media feed, social media feeds, link in bio, Instagram gallery, shoppable Instagram, hashtag
6
  Requires at least: 5.7
7
  Requires PHP: 7.1
8
+ Tested up to: 6.0
9
+ Stable tag: 1.1.1
10
  License: GPLv3
11
 
12
  Easily display Instagram feeds in less than 7 clicks. Customizable, accessible, and SEO-friendly. The fastest-growing Instagram feed solution.
248
 
249
  == Changelog ==
250
 
251
+ = 1.1.1 (2022-07-14) =
252
+
253
+ **Fixed**
254
+ - An error during import caused by null video URLs
255
+
256
  = 1.1 (2022-07-07) =
257
 
258
  **Changed**
src/core/Engine/Store/MediaFileStore.php CHANGED
@@ -151,7 +151,9 @@ class MediaFileStore
151
  // Only delete the video file if the item's URL points to Instagram.
152
  // Video's don't automatically reset their URLs when whe user disables video downloading.
153
  // The videos are updated on the next fetch, which will bring in a new video URL.
154
- if ($this->isUrlFromIg($data[MediaItem::MEDIA_URL])) {
 
 
155
  @unlink($videoFile->path);
156
  }
157
  }
151
  // Only delete the video file if the item's URL points to Instagram.
152
  // Video's don't automatically reset their URLs when whe user disables video downloading.
153
  // The videos are updated on the next fetch, which will bring in a new video URL.
154
+ $videoMediaUrl = $data[MediaItem::MEDIA_URL] ?? null;
155
+
156
+ if (is_string($videoMediaUrl) && $this->isUrlFromIg($videoMediaUrl)) {
157
  @unlink($videoFile->path);
158
  }
159
  }
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInit50ed8b6e9930b6552fbfdfacad1c7e68::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInit6ba236e1581f38be7eb6c58c43ed9b65::getLoader();
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInit50ed8b6e9930b6552fbfdfacad1c7e68
6
  {
7
  private static $loader;
8
 
@@ -22,15 +22,15 @@ class ComposerAutoloaderInit50ed8b6e9930b6552fbfdfacad1c7e68
22
  return self::$loader;
23
  }
24
 
25
- spl_autoload_register(array('ComposerAutoloaderInit50ed8b6e9930b6552fbfdfacad1c7e68', 'loadClassLoader'), true, true);
26
  self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
27
- spl_autoload_unregister(array('ComposerAutoloaderInit50ed8b6e9930b6552fbfdfacad1c7e68', 'loadClassLoader'));
28
 
29
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
30
  if ($useStaticLoader) {
31
  require __DIR__ . '/autoload_static.php';
32
 
33
- call_user_func(\Composer\Autoload\ComposerStaticInit50ed8b6e9930b6552fbfdfacad1c7e68::getInitializer($loader));
34
  } else {
35
  $map = require __DIR__ . '/autoload_namespaces.php';
36
  foreach ($map as $namespace => $path) {
@@ -51,19 +51,19 @@ class ComposerAutoloaderInit50ed8b6e9930b6552fbfdfacad1c7e68
51
  $loader->register(true);
52
 
53
  if ($useStaticLoader) {
54
- $includeFiles = Composer\Autoload\ComposerStaticInit50ed8b6e9930b6552fbfdfacad1c7e68::$files;
55
  } else {
56
  $includeFiles = require __DIR__ . '/autoload_files.php';
57
  }
58
  foreach ($includeFiles as $fileIdentifier => $file) {
59
- composerRequire50ed8b6e9930b6552fbfdfacad1c7e68($fileIdentifier, $file);
60
  }
61
 
62
  return $loader;
63
  }
64
  }
65
 
66
- function composerRequire50ed8b6e9930b6552fbfdfacad1c7e68($fileIdentifier, $file)
67
  {
68
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
69
  require $file;
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInit6ba236e1581f38be7eb6c58c43ed9b65
6
  {
7
  private static $loader;
8
 
22
  return self::$loader;
23
  }
24
 
25
+ spl_autoload_register(array('ComposerAutoloaderInit6ba236e1581f38be7eb6c58c43ed9b65', 'loadClassLoader'), true, true);
26
  self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
27
+ spl_autoload_unregister(array('ComposerAutoloaderInit6ba236e1581f38be7eb6c58c43ed9b65', 'loadClassLoader'));
28
 
29
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
30
  if ($useStaticLoader) {
31
  require __DIR__ . '/autoload_static.php';
32
 
33
+ call_user_func(\Composer\Autoload\ComposerStaticInit6ba236e1581f38be7eb6c58c43ed9b65::getInitializer($loader));
34
  } else {
35
  $map = require __DIR__ . '/autoload_namespaces.php';
36
  foreach ($map as $namespace => $path) {
51
  $loader->register(true);
52
 
53
  if ($useStaticLoader) {
54
+ $includeFiles = Composer\Autoload\ComposerStaticInit6ba236e1581f38be7eb6c58c43ed9b65::$files;
55
  } else {
56
  $includeFiles = require __DIR__ . '/autoload_files.php';
57
  }
58
  foreach ($includeFiles as $fileIdentifier => $file) {
59
+ composerRequire6ba236e1581f38be7eb6c58c43ed9b65($fileIdentifier, $file);
60
  }
61
 
62
  return $loader;
63
  }
64
  }
65
 
66
+ function composerRequire6ba236e1581f38be7eb6c58c43ed9b65($fileIdentifier, $file)
67
  {
68
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
69
  require $file;
vendor/composer/autoload_static.php CHANGED
@@ -4,7 +4,7 @@
4
 
5
  namespace Composer\Autoload;
6
 
7
- class ComposerStaticInit50ed8b6e9930b6552fbfdfacad1c7e68
8
  {
9
  public static $files = array (
10
  '7b11c4dc42b3b3023073cb14e519683c' => __DIR__ . '/..' . '/ralouphie/getallheaders/src/getallheaders.php',
@@ -637,9 +637,9 @@ class ComposerStaticInit50ed8b6e9930b6552fbfdfacad1c7e68
637
  public static function getInitializer(ClassLoader $loader)
638
  {
639
  return \Closure::bind(function () use ($loader) {
640
- $loader->prefixLengthsPsr4 = ComposerStaticInit50ed8b6e9930b6552fbfdfacad1c7e68::$prefixLengthsPsr4;
641
- $loader->prefixDirsPsr4 = ComposerStaticInit50ed8b6e9930b6552fbfdfacad1c7e68::$prefixDirsPsr4;
642
- $loader->classMap = ComposerStaticInit50ed8b6e9930b6552fbfdfacad1c7e68::$classMap;
643
 
644
  }, null, ClassLoader::class);
645
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInit6ba236e1581f38be7eb6c58c43ed9b65
8
  {
9
  public static $files = array (
10
  '7b11c4dc42b3b3023073cb14e519683c' => __DIR__ . '/..' . '/ralouphie/getallheaders/src/getallheaders.php',
637
  public static function getInitializer(ClassLoader $loader)
638
  {
639
  return \Closure::bind(function () use ($loader) {
640
+ $loader->prefixLengthsPsr4 = ComposerStaticInit6ba236e1581f38be7eb6c58c43ed9b65::$prefixLengthsPsr4;
641
+ $loader->prefixDirsPsr4 = ComposerStaticInit6ba236e1581f38be7eb6c58c43ed9b65::$prefixDirsPsr4;
642
+ $loader->classMap = ComposerStaticInit6ba236e1581f38be7eb6c58c43ed9b65::$classMap;
643
 
644
  }, null, ClassLoader::class);
645
  }