WP RSS Aggregator - Version 4.4.3

Version Description

(2014-08-19) = * Fixed bug: Fatal error when using PHP version 5.3 or lower.

Download this release

Release Info

Developer jeangalea
Plugin Icon 128x128 WP RSS Aggregator
Version 4.4.3
Comparing to
See all releases

Code changes from version 4.4.2 to 4.4.3

Files changed (3) hide show
  1. changelog.txt +3 -0
  2. readme.txt +4 -1
  3. wp-rss-aggregator.php +8 -8
changelog.txt CHANGED
@@ -1,3 +1,6 @@
 
 
 
1
  4.4.2 (2014-08-19)
2
  Fixed bug: Fatal error when using PHP version 5.3 or lower.
3
 
1
+ 4.4.3 (2014-08-19)
2
+ Fixed bug: Fatal error when using PHP version 5.3 or lower.
3
+
4
  4.4.2 (2014-08-19)
5
  Fixed bug: Fatal error when using PHP version 5.3 or lower.
6
 
readme.txt CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://www.wprssaggregator.com
5
  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
6
  Requires at least: 3.3
7
  Tested up to: 3.9.1
8
- Stable tag: 4.4.2
9
  License: GPLv2 or later
10
  Imports and aggregates multiple RSS Feeds using SimplePie. Outputs feeds sorted by date (latest first).
11
 
@@ -163,6 +163,9 @@ The full documentation section can be found on the [WP RSS Aggregator website](w
163
 
164
  == Changelog ==
165
 
 
 
 
166
  = 4.4.2 (2014-08-19) =
167
  * Fixed bug: Fatal error when using PHP version 5.3 or lower.
168
 
5
  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
6
  Requires at least: 3.3
7
  Tested up to: 3.9.1
8
+ Stable tag: 4.4.3
9
  License: GPLv2 or later
10
  Imports and aggregates multiple RSS Feeds using SimplePie. Outputs feeds sorted by date (latest first).
11
 
163
 
164
  == Changelog ==
165
 
166
+ = 4.4.3 (2014-08-19) =
167
+ * Fixed bug: Fatal error when using PHP version 5.3 or lower.
168
+
169
  = 4.4.2 (2014-08-19) =
170
  * Fixed bug: Fatal error when using PHP version 5.3 or lower.
171
 
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.4.2
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.4.2
33
  * @since 1.0
34
  * @author Jean Galea <info@jeangalea.com>
35
  * @copyright Copyright (c) 2012-2014, 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.4.2', true );
47
 
48
  // Set the database version number of the plugin.
49
  if( !defined( 'WPRSS_DB_VERSION' ) )
@@ -531,18 +531,18 @@
531
  $format = is_null($format) ? get_option('date_format') . ' ' . get_option('time_format') : $format;
532
  $timestamp = $timestamp ? $timestamp : time();
533
 
534
- $timezone_str = wprss_get_timezone_string() ?: 'UTC';
535
- $timezone = new \DateTimeZone($timezone_str);
536
 
537
  // The date in the local timezone.
538
- $date = new \DateTime(null, $timezone);
539
  $date->setTimestamp($timestamp);
540
  $date_str = $date->format('Y-m-d H:i:s');
541
 
542
  // Pretend the local date is UTC to get the timestamp
543
  // to pass to date_i18n().
544
- $utc_timezone = new \DateTimeZone('UTC');
545
- $utc_date = new \DateTime($date_str, $utc_timezone);
546
  $timestamp = $utc_date->getTimestamp();
547
 
548
  return date_i18n($format, $timestamp, true);
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.4.3
7
  Author: Jean Galea
8
  Author URI: http://www.wprssaggregator.com
9
  License: GPLv2
29
 
30
  /**
31
  * @package WPRSSAggregator
32
+ * @version 4.4.3
33
  * @since 1.0
34
  * @author Jean Galea <info@jeangalea.com>
35
  * @copyright Copyright (c) 2012-2014, Jean Galea
43
 
44
  // Set the version number of the plugin.
45
  if( !defined( 'WPRSS_VERSION' ) )
46
+ define( 'WPRSS_VERSION', '4.4.3', true );
47
 
48
  // Set the database version number of the plugin.
49
  if( !defined( 'WPRSS_DB_VERSION' ) )
531
  $format = is_null($format) ? get_option('date_format') . ' ' . get_option('time_format') : $format;
532
  $timestamp = $timestamp ? $timestamp : time();
533
 
534
+ $timezone_str = wprss_get_timezone_string() ? wprss_get_timezone_string() : 'UTC';
535
+ $timezone = new DateTimeZone($timezone_str);
536
 
537
  // The date in the local timezone.
538
+ $date = new DateTime(null, $timezone);
539
  $date->setTimestamp($timestamp);
540
  $date_str = $date->format('Y-m-d H:i:s');
541
 
542
  // Pretend the local date is UTC to get the timestamp
543
  // to pass to date_i18n().
544
+ $utc_timezone = new DateTimeZone('UTC');
545
+ $utc_date = new DateTime($date_str, $utc_timezone);
546
  $timestamp = $utc_date->getTimestamp();
547
 
548
  return date_i18n($format, $timestamp, true);