WP RSS Aggregator - Version 4.18.1

Version Description

Download this release

Release Info

Developer Mekku
Plugin Icon 128x128 WP RSS Aggregator
Version 4.18.1
Comparing to
See all releases

Code changes from version 4.18 to 4.18.1

includes/Aventura/Wprss/Core/Licensing/Manager.php CHANGED
@@ -476,27 +476,30 @@ class Manager {
476
 
477
  // Prepare constants names
478
  $itemNameConstant = sprintf( 'WPRSS_%s_SL_ITEM_NAME', $addonUid );
479
- $storeUrlConstant = sprintf( 'WPRSS_%s_SL_STORE_URL', $addonUid );
480
 
481
  // Check for existence of constants
482
- if ( !defined($itemNameConstant) || !defined($storeUrlConstant) ) {
483
  return null;
484
  }
485
 
486
  // Get constant values
487
  $itemName = constant( $itemNameConstant );
488
- $storeUrl = constant( $storeUrlConstant );
489
  // Correct item name for lifetime variants
490
  $itemName = ($isLifetime)
491
  ? sprintf(static::LIFETIME_ITEM_NAME_PATTERN, $itemName)
492
  : $itemName;
493
 
 
 
 
 
 
 
 
 
 
494
  try {
495
- $licenseData = $this->api($storeUrl, $requestData = array(
496
- 'edd_action' => $action,
497
- 'license' => $license,
498
- 'item_name' => $itemName,
499
- ));
500
  }
501
  catch ( RequestException $e ) {
502
  wprss_log( sprintf( 'Could not retrieve licensing data from "%1$s": %2$s', $storeUrl, $e->getMessage() ), __FUNCTION__, WPRSS_LOG_LEVEL_WARNING );
476
 
477
  // Prepare constants names
478
  $itemNameConstant = sprintf( 'WPRSS_%s_SL_ITEM_NAME', $addonUid );
 
479
 
480
  // Check for existence of constants
481
+ if ( !defined($itemNameConstant) ) {
482
  return null;
483
  }
484
 
485
  // Get constant values
486
  $itemName = constant( $itemNameConstant );
 
487
  // Correct item name for lifetime variants
488
  $itemName = ($isLifetime)
489
  ? sprintf(static::LIFETIME_ITEM_NAME_PATTERN, $itemName)
490
  : $itemName;
491
 
492
+ $requestData = [
493
+ 'edd_action' => $action,
494
+ 'license' => $license,
495
+ 'item_name' => $itemName,
496
+ ];
497
+
498
+ $storeUrl = apply_filters('wpra/licensing/store_url', WPRSS_SL_STORE_URL, $addonId, $action, $license);
499
+ $requestData = apply_filters('wpra/licensing/request', $requestData, $addonId, $action, $license);
500
+
501
  try {
502
+ $licenseData = $this->api($storeUrl, $requestData);
 
 
 
 
503
  }
504
  catch ( RequestException $e ) {
505
  wprss_log( sprintf( 'Could not retrieve licensing data from "%1$s": %2$s', $storeUrl, $e->getMessage() ), __FUNCTION__, WPRSS_LOG_LEVEL_WARNING );
includes/feed-importing-images.php CHANGED
@@ -703,8 +703,8 @@ function wpra_media_sideload_image($url = null, $post_id = null, $attach = null,
703
  return new WP_Error('missing', "Need a valid URL and post ID...");
704
  }
705
 
706
- // Allow 10 seconds prior to beginning the actual download
707
- set_time_limit(10);
708
 
709
  // Check if the image already exists in the media library
710
  $existing = get_posts([
@@ -727,8 +727,8 @@ function wpra_media_sideload_image($url = null, $post_id = null, $attach = null,
727
  /* @var $img WPRSS_Image_Cache_Image */
728
  $url = apply_filters('wpra/images/url_to_download', $url);
729
 
730
- // Allow 30 seconds for the download process
731
- set_time_limit(30);
732
 
733
  $img = $images->get($url);
734
  } catch (Exception $e) {
@@ -858,8 +858,8 @@ function wpra_media_sideload_image($url = null, $post_id = null, $attach = null,
858
  // For some reason, deep down filesize() returned 0 for the temporary file without this
859
  clearstatcache(false, $file_array['tmp_name']);
860
 
861
- // Allocate 10 for WordPress to copy and process the image
862
- set_time_limit(10);
863
 
864
  // $post_data can override the items saved to wp_posts table,
865
  // like post_mime_type, guid, post_parent, post_title, post_content, post_status
703
  return new WP_Error('missing', "Need a valid URL and post ID...");
704
  }
705
 
706
+ // Allow 30 seconds prior to beginning the actual download
707
+ set_time_limit(apply_filters('wpra/images/time_limit/prepare', 30));
708
 
709
  // Check if the image already exists in the media library
710
  $existing = get_posts([
727
  /* @var $img WPRSS_Image_Cache_Image */
728
  $url = apply_filters('wpra/images/url_to_download', $url);
729
 
730
+ // Allow 1 minute for the download process
731
+ set_time_limit(apply_filters('wpra/images/time_limit/download', 60));
732
 
733
  $img = $images->get($url);
734
  } catch (Exception $e) {
858
  // For some reason, deep down filesize() returned 0 for the temporary file without this
859
  clearstatcache(false, $file_array['tmp_name']);
860
 
861
+ // Allocate 30 for WordPress to copy and process the image
862
+ set_time_limit(apply_filters('wpra/images/time_limit/copy', 30));
863
 
864
  // $post_data can override the items saved to wp_posts table,
865
  // like post_mime_type, guid, post_parent, post_title, post_content, post_status
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: RSS import, RSS aggregator, autoblog, feed to post, news aggregator, rss t
5
  Requires at least: 4.0 or higher
6
  Tested up to: 5.6
7
  Requires PHP: 5.4
8
- Stable tag: 4.18
9
  License: GPLv3
10
 
11
  The most powerful and reliable RSS aggregator for WordPress. Build a news aggregator, autoblog and more in minutes with unlimited RSS feeds.
@@ -254,6 +254,17 @@ Our complete Knowledge Base with FAQs can be found [here](https://kb.wprssaggreg
254
 
255
  == Changelog ==
256
 
 
 
 
 
 
 
 
 
 
 
 
257
  = 4.18 (2021-03-08) =
258
  **Added**
259
  - The total import time is now recorded in the debug log.
5
  Requires at least: 4.0 or higher
6
  Tested up to: 5.6
7
  Requires PHP: 5.4
8
+ Stable tag: 4.18.1
9
  License: GPLv3
10
 
11
  The most powerful and reliable RSS aggregator for WordPress. Build a news aggregator, autoblog and more in minutes with unlimited RSS feeds.
254
 
255
  == Changelog ==
256
 
257
+ = 4.18.11 (2021-03-15) =
258
+ **Added**
259
+ - New filters to change the time limits during image downloads.
260
+
261
+ **Changed**
262
+ - Using a single store URL for addon license verification.
263
+ - Increased the PHP execution time limits for image downloads.
264
+
265
+ **Fixed**
266
+ - Licenses for the Templates addon could not be verified.
267
+
268
  = 4.18 (2021-03-08) =
269
  **Added**
270
  - The total import time is now recorded in the debug log.
vendor/composer/ClassLoader.php CHANGED
@@ -311,8 +311,10 @@ class ClassLoader
311
  spl_autoload_register(array($this, 'loadClass'), true, $prepend);
312
 
313
  if (null === $this->vendorDir) {
314
- //no-op
315
- } elseif ($prepend) {
 
 
316
  self::$registeredLoaders = array($this->vendorDir => $this) + self::$registeredLoaders;
317
  } else {
318
  unset(self::$registeredLoaders[$this->vendorDir]);
311
  spl_autoload_register(array($this, 'loadClass'), true, $prepend);
312
 
313
  if (null === $this->vendorDir) {
314
+ return;
315
+ }
316
+
317
+ if ($prepend) {
318
  self::$registeredLoaders = array($this->vendorDir => $this) + self::$registeredLoaders;
319
  } else {
320
  unset(self::$registeredLoaders[$this->vendorDir]);
vendor/composer/InstalledVersions.php CHANGED
@@ -30,7 +30,7 @@ private static $installed = array (
30
  'aliases' =>
31
  array (
32
  ),
33
- 'reference' => 'dbbd846351515ddbc9f72dc75ff1c3654e3bebf5',
34
  'name' => 'wprss/core',
35
  ),
36
  'versions' =>
@@ -405,7 +405,7 @@ private static $installed = array (
405
  'aliases' =>
406
  array (
407
  ),
408
- 'reference' => 'dbbd846351515ddbc9f72dc75ff1c3654e3bebf5',
409
  ),
410
  ),
411
  );
@@ -630,7 +630,6 @@ self::$canGetVendors = method_exists('Composer\Autoload\ClassLoader', 'getRegist
630
  $installed = array();
631
 
632
  if (self::$canGetVendors) {
633
-
634
  foreach (ClassLoader::getRegisteredLoaders() as $vendorDir => $loader) {
635
  if (isset(self::$installedByVendor[$vendorDir])) {
636
  $installed[] = self::$installedByVendor[$vendorDir];
30
  'aliases' =>
31
  array (
32
  ),
33
+ 'reference' => 'cf31bfba2b2a87f99a1a66c317374f641cbf6e59',
34
  'name' => 'wprss/core',
35
  ),
36
  'versions' =>
405
  'aliases' =>
406
  array (
407
  ),
408
+ 'reference' => 'cf31bfba2b2a87f99a1a66c317374f641cbf6e59',
409
  ),
410
  ),
411
  );
630
  $installed = array();
631
 
632
  if (self::$canGetVendors) {
 
633
  foreach (ClassLoader::getRegisteredLoaders() as $vendorDir => $loader) {
634
  if (isset(self::$installedByVendor[$vendorDir])) {
635
  $installed[] = self::$installedByVendor[$vendorDir];
vendor/composer/installed.php CHANGED
@@ -6,7 +6,7 @@
6
  'aliases' =>
7
  array (
8
  ),
9
- 'reference' => 'dbbd846351515ddbc9f72dc75ff1c3654e3bebf5',
10
  'name' => 'wprss/core',
11
  ),
12
  'versions' =>
@@ -381,7 +381,7 @@
381
  'aliases' =>
382
  array (
383
  ),
384
- 'reference' => 'dbbd846351515ddbc9f72dc75ff1c3654e3bebf5',
385
  ),
386
  ),
387
  );
6
  'aliases' =>
7
  array (
8
  ),
9
+ 'reference' => 'cf31bfba2b2a87f99a1a66c317374f641cbf6e59',
10
  'name' => 'wprss/core',
11
  ),
12
  'versions' =>
381
  'aliases' =>
382
  array (
383
  ),
384
+ 'reference' => 'cf31bfba2b2a87f99a1a66c317374f641cbf6e59',
385
  ),
386
  ),
387
  );
wp-rss-aggregator.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin Name: WP RSS Aggregator
5
  * Plugin URI: https://www.wprssaggregator.com/#utm_source=wpadmin&utm_medium=plugin&utm_campaign=wpraplugin
6
  * Description: Imports and aggregates multiple RSS Feeds.
7
- * Version: 4.18
8
  * Author: RebelCode
9
  * Author URI: https://www.wprssaggregator.com
10
  * Text Domain: wprss
@@ -76,7 +76,7 @@ use RebelCode\Wpra\Core\Plugin;
76
 
77
  // Set the version number of the plugin.
78
  if( !defined( 'WPRSS_VERSION' ) )
79
- define( 'WPRSS_VERSION', '4.18' );
80
 
81
  if( !defined( 'WPRSS_WP_MIN_VERSION' ) )
82
  define( 'WPRSS_WP_MIN_VERSION', '4.8' );
@@ -139,7 +139,7 @@ if( !defined( 'WPRSS_LOG_FILE_EXT' ) )
139
  define( 'WPRSS_LOG_FILE_EXT', '.txt' );
140
 
141
  if ( !defined('WPRSS_SL_STORE_URL') ) {
142
- define( 'WPRSS_SL_STORE_URL', 'https://www.wprssaggregator.com' );
143
  }
144
 
145
  if ( !defined( 'WPRSS_TEXT_DOMAIN' ) ) {
4
  * Plugin Name: WP RSS Aggregator
5
  * Plugin URI: https://www.wprssaggregator.com/#utm_source=wpadmin&utm_medium=plugin&utm_campaign=wpraplugin
6
  * Description: Imports and aggregates multiple RSS Feeds.
7
+ * Version: 4.18.1
8
  * Author: RebelCode
9
  * Author URI: https://www.wprssaggregator.com
10
  * Text Domain: wprss
76
 
77
  // Set the version number of the plugin.
78
  if( !defined( 'WPRSS_VERSION' ) )
79
+ define( 'WPRSS_VERSION', '4.18.1' );
80
 
81
  if( !defined( 'WPRSS_WP_MIN_VERSION' ) )
82
  define( 'WPRSS_WP_MIN_VERSION', '4.8' );
139
  define( 'WPRSS_LOG_FILE_EXT', '.txt' );
140
 
141
  if ( !defined('WPRSS_SL_STORE_URL') ) {
142
+ define( 'WPRSS_SL_STORE_URL', 'https://www.wprssaggregator.com/edd-sl-api/' );
143
  }
144
 
145
  if ( !defined( 'WPRSS_TEXT_DOMAIN' ) ) {