WP RSS Aggregator - Version 4.7.7

Version Description

(2015-10-19) = * Enhanced: Optimized checking for plugin updates.

Download this release

Release Info

Developer markzahra
Plugin Icon 128x128 WP RSS Aggregator
Version 4.7.7
Comparing to
See all releases

Code changes from version 4.7.6 to 4.7.7

Files changed (3) hide show
  1. includes/licensing.php +13 -11
  2. readme.txt +4 -1
  3. wp-rss-aggregator.php +21 -3
includes/licensing.php CHANGED
@@ -3,14 +3,14 @@
3
  /**
4
  * What to print in place of license code chars.
5
  * This must not be a symbol that is considered to be a valid license key char.
6
- *
7
  * @since 4.6.10
8
  */
9
  define( 'WPRSS_LICENSE_KEY_MASK_CHAR', '•' );
10
  /**
11
  * How many characters of the license code to print as is.
12
  * Use negative value to indicate that characters at the end of the key are excluded.
13
- *
14
  * @since 4.6.10
15
  */
16
  define( 'WPRSS_LICENSE_KEY_MASK_EXCLUDE_AMOUNT', -4 );
@@ -64,7 +64,7 @@ function wprss_edd_licensing_api( $addon, $license_key = NULL, $action = 'check_
64
 
65
  // decode the license data
66
  $license_data = json_decode( wp_remote_retrieve_body( $response ) );
67
-
68
  // Could not decode response JSON
69
  if ( is_null( $license_data ) ) {
70
  wprss_log( sprintf( 'Licensing API: Failed to decode response JSON' ), __FUNCTION__, WPRSS_LOG_LEVEL_WARNING );
@@ -320,10 +320,10 @@ function wprss_show_license_notice() {
320
 
321
  $expires = strtotime( substr( $value, 0, strpos( $value, " " ) ) );
322
  $id = substr( $key, 0, strpos( $key, "_" ) );
323
- $uid = strtoupper($id);
324
-
325
  $addon_notices = get_option('wprss_addon_notices');
326
-
327
  // Check if the plugin is currently activated.
328
  if ( !defined("WPRSS_{$uid}_SL_ITEM_NAME") ) {
329
  continue;
@@ -707,13 +707,15 @@ function wprss_process_addon_license() {
707
  }
708
 
709
 
710
- add_action( 'init', 'wprss_setup_edd_updater' );
711
  /**
712
  * Sets up the EDD updater for all registered add-ons.
713
  *
714
  * @since 4.6.3
715
  */
716
  function wprss_setup_edd_updater() {
 
 
717
  // Get all registered addons
718
  $addons = wprss_get_addons();
719
 
@@ -749,7 +751,7 @@ add_filter( 'wprss_settings_license_key_is_valid', 'wprss_license_validate_key_f
749
  /**
750
  * Invalidates the key if it is obfuscated, causing the saved version to be used.
751
  * This meanst that the new key will not be saved, as it is considered then to be unchanged.
752
- *
753
  * @since 4.6.10
754
  * @param bool $is_valid Indicates whether the key is currently considered to be valid.
755
  * @param string $key The license key in question
@@ -758,18 +760,18 @@ add_filter( 'wprss_settings_license_key_is_valid', 'wprss_license_validate_key_f
758
  function wprss_license_validate_key_for_save( $is_valid, $key ) {
759
  if ( wprss_license_key_is_obfuscated( $key ) )
760
  return false;
761
-
762
  return $is_valid;
763
  }
764
 
765
 
766
  /**
767
  * Determines whether or not the license key in question is obfuscated.
768
- *
769
  * This is achieved by searching for the mask character in the key. Because the
770
  * mask character cannot be a valid license character, the presence of at least
771
  * one such character indicates that the key is obfuscated.
772
- *
773
  * @since 4.6.10
774
  * @param string $key The license key in question.
775
  * @return bool Whether or not this key is obfuscated.
3
  /**
4
  * What to print in place of license code chars.
5
  * This must not be a symbol that is considered to be a valid license key char.
6
+ *
7
  * @since 4.6.10
8
  */
9
  define( 'WPRSS_LICENSE_KEY_MASK_CHAR', '•' );
10
  /**
11
  * How many characters of the license code to print as is.
12
  * Use negative value to indicate that characters at the end of the key are excluded.
13
+ *
14
  * @since 4.6.10
15
  */
16
  define( 'WPRSS_LICENSE_KEY_MASK_EXCLUDE_AMOUNT', -4 );
64
 
65
  // decode the license data
66
  $license_data = json_decode( wp_remote_retrieve_body( $response ) );
67
+
68
  // Could not decode response JSON
69
  if ( is_null( $license_data ) ) {
70
  wprss_log( sprintf( 'Licensing API: Failed to decode response JSON' ), __FUNCTION__, WPRSS_LOG_LEVEL_WARNING );
320
 
321
  $expires = strtotime( substr( $value, 0, strpos( $value, " " ) ) );
322
  $id = substr( $key, 0, strpos( $key, "_" ) );
323
+ $uid = strtoupper($id);
324
+
325
  $addon_notices = get_option('wprss_addon_notices');
326
+
327
  // Check if the plugin is currently activated.
328
  if ( !defined("WPRSS_{$uid}_SL_ITEM_NAME") ) {
329
  continue;
707
  }
708
 
709
 
710
+ add_action( 'admin_init', 'wprss_setup_edd_updater' );
711
  /**
712
  * Sets up the EDD updater for all registered add-ons.
713
  *
714
  * @since 4.6.3
715
  */
716
  function wprss_setup_edd_updater() {
717
+ if ( ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) || ( defined( 'DOING_AJAX' ) && DOING_AJAX ) ) return;
718
+
719
  // Get all registered addons
720
  $addons = wprss_get_addons();
721
 
751
  /**
752
  * Invalidates the key if it is obfuscated, causing the saved version to be used.
753
  * This meanst that the new key will not be saved, as it is considered then to be unchanged.
754
+ *
755
  * @since 4.6.10
756
  * @param bool $is_valid Indicates whether the key is currently considered to be valid.
757
  * @param string $key The license key in question
760
  function wprss_license_validate_key_for_save( $is_valid, $key ) {
761
  if ( wprss_license_key_is_obfuscated( $key ) )
762
  return false;
763
+
764
  return $is_valid;
765
  }
766
 
767
 
768
  /**
769
  * Determines whether or not the license key in question is obfuscated.
770
+ *
771
  * This is achieved by searching for the mask character in the key. Because the
772
  * mask character cannot be a valid license character, the presence of at least
773
  * one such character indicates that the key is obfuscated.
774
+ *
775
  * @since 4.6.10
776
  * @param string $key The license key in question.
777
  * @return bool Whether or not this key is obfuscated.
readme.txt CHANGED
@@ -4,7 +4,7 @@ Plugin URI: http://www.wprssaggregator.com
4
  Tags: rss, feeds, aggregation, rss to post, autoblog aggregator, rss import, feed aggregator, rss aggregator, multiple rss feeds, multi rss feeds, rss multi importer, feed import, feed import, multiple feed import, feed aggregation, rss feader, feed reader, feed to post, multiple feeds, multi feed importer, multi feed import, multi import, autoblogging, autoblogger, rss feeder, rss post importer, autoblog aggregator, autoblog, autopost, content curation, feedwordpress, wp rss multi import, hungryfeed, wp-o-matic, rss feed, rss feed to post, rss retriever, syndication
5
  Requires at least: 4.0
6
  Tested up to: 4.3.1
7
- Stable tag: 4.7.6
8
  License: GPLv2 or later
9
  The no.1 RSS feed importer for WordPress. Premium add-ons available for more functionality.
10
 
@@ -193,6 +193,9 @@ The full documentation section can be found on the [WP RSS Aggregator website](w
193
 
194
  == Changelog ==
195
 
 
 
 
196
  = 4.7.6 (2015-10-07) =
197
  * Enhanced: Feeds that fail to validate due to whitespace at the beginning are now supported by the plugin.
198
  * Fixed bug: Undefined variables in the System Info section in the Debugging page.
4
  Tags: rss, feeds, aggregation, rss to post, autoblog aggregator, rss import, feed aggregator, rss aggregator, multiple rss feeds, multi rss feeds, rss multi importer, feed import, feed import, multiple feed import, feed aggregation, rss feader, feed reader, feed to post, multiple feeds, multi feed importer, multi feed import, multi import, autoblogging, autoblogger, rss feeder, rss post importer, autoblog aggregator, autoblog, autopost, content curation, feedwordpress, wp rss multi import, hungryfeed, wp-o-matic, rss feed, rss feed to post, rss retriever, syndication
5
  Requires at least: 4.0
6
  Tested up to: 4.3.1
7
+ Stable tag: 4.7.7
8
  License: GPLv2 or later
9
  The no.1 RSS feed importer for WordPress. Premium add-ons available for more functionality.
10
 
193
 
194
  == Changelog ==
195
 
196
+ = 4.7.7 (2015-10-19) =
197
+ * Enhanced: Optimized checking for plugin updates.
198
+
199
  = 4.7.6 (2015-10-07) =
200
  * Enhanced: Feeds that fail to validate due to whitespace at the beginning are now supported by the plugin.
201
  * Fixed bug: Undefined variables in the System Info section in the Debugging page.
wp-rss-aggregator.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: WP RSS Aggregator
4
  Plugin URI: http://www.wprssaggregator.com
5
  Description: Imports and aggregates multiple RSS Feeds using SimplePie
6
- Version: 4.7.6
7
  Author: Jean Galea
8
  Author URI: http://www.wprssaggregator.com
9
  License: GPLv2
@@ -29,7 +29,7 @@
29
 
30
  /**
31
  * @package WPRSSAggregator
32
- * @version 4.7.6
33
  * @since 1.0
34
  * @author Jean Galea <info@wprssaggregator.com>
35
  * @copyright Copyright (c) 2012-2015, Jean Galea
@@ -43,7 +43,7 @@
43
 
44
  // Set the version number of the plugin.
45
  if( !defined( 'WPRSS_VERSION' ) )
46
- define( 'WPRSS_VERSION', '4.7.6', true );
47
 
48
  if( !defined( 'WPRSS_WP_MIN_VERSION' ) )
49
  define( 'WPRSS_WP_MIN_VERSION', '4.0', true );
@@ -413,6 +413,24 @@
413
  }
414
 
415
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
416
  /**
417
  * Plugin activation procedure
418
  *
3
  Plugin Name: WP RSS Aggregator
4
  Plugin URI: http://www.wprssaggregator.com
5
  Description: Imports and aggregates multiple RSS Feeds using SimplePie
6
+ Version: 4.7.7
7
  Author: Jean Galea
8
  Author URI: http://www.wprssaggregator.com
9
  License: GPLv2
29
 
30
  /**
31
  * @package WPRSSAggregator
32
+ * @version 4.7.7
33
  * @since 1.0
34
  * @author Jean Galea <info@wprssaggregator.com>
35
  * @copyright Copyright (c) 2012-2015, Jean Galea
43
 
44
  // Set the version number of the plugin.
45
  if( !defined( 'WPRSS_VERSION' ) )
46
+ define( 'WPRSS_VERSION', '4.7.7', true );
47
 
48
  if( !defined( 'WPRSS_WP_MIN_VERSION' ) )
49
  define( 'WPRSS_WP_MIN_VERSION', '4.0', true );
413
  }
414
 
415
 
416
+ add_action( 'init', 'wprss_add_php_version_change_warning' );
417
+ function wprss_add_php_version_change_warning() {
418
+ $minVersion = '5.3';
419
+ if ( version_compare(PHP_VERSION, $minVersion, '>=') )
420
+ return;
421
+
422
+ wprss_admin_notice_add(array(
423
+ 'id' => 'php_version_change_warning',
424
+ 'content' => sprintf( __(
425
+ '<p><strong>WP RSS Aggregator is moving to PHP %1$s</strong></br>'
426
+ . 'The next release of your favourite aggregator will not support PHP 5.2. <a href="http://www.wprssaggregator.com/wp-rss-aggregator-to-require-php-5-3/" target="_blank">Read why here</a></p>',
427
+ WPRSS_TEXT_DOMAIN ), $minVersion ),
428
+ 'notice_type' => 'error',
429
+ 'condition' => 'wprss_is_wprss_page'
430
+ ));
431
+ }
432
+
433
+
434
  /**
435
  * Plugin activation procedure
436
  *