WP RSS Aggregator - Version 4.0.5

Version Description

(2014-03-03) = * New Feature: Time ago added as an option. * Enhanced: The plugin now allows the use of RSS and Atom feeds that do not specify the correct MIME type. * Enhanced: Better performance due to better hook usage. * Fixed bug: Facebook page feed URL conversion was not being triggered for new feed sources. * Fixed bug: Styles fix for pagination. * Fixed bug: Removed empty spaces in logging.

Download this release

Release Info

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

Code changes from version 4.0.4 to 4.0.5

changelog.txt CHANGED
@@ -1,3 +1,11 @@
 
 
 
 
 
 
 
 
1
  4.0.4 (2014-02-22)
2
  Enhanced: Added Activate/Pause bulk actions in the Feed Sources page.
3
  Enhanced: Feed Sources page table has been re-designed.
1
+ 4.0.5 (2014-03-03)
2
+ New Feature: Time ago added as an option.
3
+ Enhanced: The plugin now allows the use of RSS and Atom feeds that do not specify the correct MIME type.
4
+ Enhanced: Better performance due to better hook usage.
5
+ Fixed bug: Facebook page feed URL conversion was not being triggered for new feed sources.
6
+ Fixed bug: Styles fix for pagination.
7
+ Fixed bug: Removed empty spaces in logging.
8
+
9
  4.0.4 (2014-02-22)
10
  Enhanced: Added Activate/Pause bulk actions in the Feed Sources page.
11
  Enhanced: Feed Sources page table has been re-designed.
css/styles.css CHANGED
@@ -15,4 +15,9 @@ span.feed-source { font-size: 90%; }
15
 
16
  .green {
17
  color: #0BD600;
 
 
 
 
 
18
  }
15
 
16
  .green {
17
  color: #0BD600;
18
+ }
19
+
20
+ .nav-links {
21
+ overflow: hidden;
22
+ margin-bottom: 20px;
23
  }
includes/admin-debugging.php CHANGED
@@ -58,7 +58,7 @@
58
  }
59
 
60
 
61
- add_action( 'init', 'wprss_debug_operations' );
62
  /**
63
  * Performs debug operations, depending on the POST request.
64
  *
58
  }
59
 
60
 
61
+ add_action( 'admin_init', 'wprss_debug_operations' );
62
  /**
63
  * Performs debug operations, depending on the POST request.
64
  *
includes/admin-display.php CHANGED
@@ -296,7 +296,7 @@
296
  }
297
 
298
 
299
- add_action( 'init', 'check_delete_for_feed_source' );
300
  /**
301
  * Checks the GET data for the delete per feed source action request
302
  *
296
  }
297
 
298
 
299
+ add_action( 'admin_init', 'check_delete_for_feed_source' );
300
  /**
301
  * Checks the GET data for the delete per feed source action request
302
  *
includes/admin-editor.php CHANGED
@@ -7,18 +7,18 @@
7
 
8
 
9
 
10
- add_action('init', 'wprss_add_editor_button');
11
  /**
12
  * Adds the WPRSS button to WordPress' editor
13
  *
14
  * @since 3.5
15
  */
16
  function wprss_add_editor_button() {
17
- if ( !current_user_can( 'edit_posts' ) && !current_user_can( 'edit_pages' ) )
18
  return;
19
  if ( get_user_option( 'rich_editing' ) == 'true') {
20
- add_filter('mce_external_plugins', 'wprss_register_tinymce_plugin');
21
- add_filter('mce_buttons', 'wprss_register_tinymce_button');
22
  }
23
  }
24
 
@@ -28,7 +28,7 @@
28
  *
29
  * @since 3.5
30
  */
31
- function wprss_register_tinymce_button($buttons) {
32
  array_push( $buttons, "|", "wprss" );
33
  return $buttons;
34
  }
7
 
8
 
9
 
10
+ add_action( 'admin_init', 'wprss_add_editor_button' );
11
  /**
12
  * Adds the WPRSS button to WordPress' editor
13
  *
14
  * @since 3.5
15
  */
16
  function wprss_add_editor_button() {
17
+ if ( ! current_user_can( 'edit_posts' ) && !current_user_can( 'edit_pages' ) )
18
  return;
19
  if ( get_user_option( 'rich_editing' ) == 'true') {
20
+ add_filter( 'mce_external_plugins', 'wprss_register_tinymce_plugin' );
21
+ add_filter( 'mce_buttons', 'wprss_register_tinymce_button' );
22
  }
23
  }
24
 
28
  *
29
  * @since 3.5
30
  */
31
+ function wprss_register_tinymce_button( $buttons ) {
32
  array_push( $buttons, "|", "wprss" );
33
  return $buttons;
34
  }
includes/admin-log.php CHANGED
@@ -45,7 +45,6 @@
45
  $date = date( 'd-m-Y H:i:s' );
46
  $source = 'WPRSS' . ( ( strlen( $src ) > 0 )? " > $src" : '' ) ;
47
  $str = "[$date] $source:\n";
48
- $str .= str_repeat(' ', strlen( strval( $date ) ) + 3 );
49
  $str .= "$message\n";
50
  file_put_contents( wprss_log_file() , $str, FILE_APPEND );
51
 
45
  $date = date( 'd-m-Y H:i:s' );
46
  $source = 'WPRSS' . ( ( strlen( $src ) > 0 )? " > $src" : '' ) ;
47
  $str = "[$date] $source:\n";
 
48
  $str .= "$message\n";
49
  file_put_contents( wprss_log_file() , $str, FILE_APPEND );
50
 
includes/admin-metaboxes.php CHANGED
@@ -322,7 +322,7 @@
322
  $feed_url = get_post_meta( $post->ID, 'wprss_url', true );
323
 
324
  if( ! empty( $feed_url ) ) {
325
- $feed = fetch_feed( $feed_url );
326
  if ( ! is_wp_error( $feed ) ) {
327
  $items = $feed->get_items();
328
  // Figure out how many total items there are, but limit it to 5.
@@ -330,7 +330,7 @@
330
 
331
  // Build an array of all the items, starting with element 0 (first element).
332
  $items = $feed->get_items( 0, $maxitems );
333
- echo '<h4>Latest 5 feeds available from ' . get_the_title() . '</h4>';
334
  echo '<ul>';
335
  foreach ( $items as $item ) {
336
  // Get human date (comment if you want to use non human date)
322
  $feed_url = get_post_meta( $post->ID, 'wprss_url', true );
323
 
324
  if( ! empty( $feed_url ) ) {
325
+ $feed = wprss_fetch_feed( $feed_url );
326
  if ( ! is_wp_error( $feed ) ) {
327
  $items = $feed->get_items();
328
  // Figure out how many total items there are, but limit it to 5.
330
 
331
  // Build an array of all the items, starting with element 0 (first element).
332
  $items = $feed->get_items( 0, $maxitems );
333
+ echo '<h4>Latest 5 feed items available from ' . get_the_title() . '</h4>';
334
  echo '<ul>';
335
  foreach ( $items as $item ) {
336
  // Get human date (comment if you want to use non human date)
includes/admin-welcome.php CHANGED
@@ -74,10 +74,12 @@
74
 
75
  <h3>Changelog for v<?php echo WPRSS_VERSION; ?></h3>
76
  <ul>
77
- <li><b>Enhanced:</b> Added Activate/Pause bulk actions in the Feed Sources page.</li>
78
- <li><b>Enhanced:</b> Feed Sources page table has been re-designed.</li>
79
- <li><b>Enhanced:</b> Logging is now site dependant on multisite.</li>
80
- <li><b>Fixed bug:</b> Undefined display settings where appearing on the front end.</li>
 
 
81
  </ul>
82
 
83
 
74
 
75
  <h3>Changelog for v<?php echo WPRSS_VERSION; ?></h3>
76
  <ul>
77
+ <li><b>New Feature:</b> Time ago added as an option.</li>
78
+ <li><b>Enhanced:</b> The plugin now allows the use of RSS and Atom feeds that do not specify the correct MIME type.</li>
79
+ <li><b>Enhanced:</b> Better performance due to better hook usage.</li>
80
+ <li><b>Fixed bug:</b> Facebook page feed URL conversion was not being triggered for new feed sources.</li>
81
+ <li><b>Fixed bug:</b> Styles fix for pagination.</li>
82
+ <li><b>Fixed bug:</b> Removed empty spaces in logging.</li>
83
  </ul>
84
 
85
 
includes/cron-jobs.php CHANGED
@@ -11,7 +11,7 @@
11
  add_action( 'wprss_pause_feed_schedule_hook', 'wprss_pause_feed_source', 10 , 1 );
12
 
13
 
14
- add_action( 'init', 'wprss_schedule_fetch_all_feeds_cron' );
15
  /**
16
  * Creates the cron to fetch feeds every hour
17
  *
@@ -33,7 +33,7 @@
33
  }
34
 
35
 
36
- add_action( 'init', 'wprss_schedule_truncate_posts_cron' );
37
  /**
38
  * Creates the cron to truncate wprss_feed_item posts daily
39
  *
11
  add_action( 'wprss_pause_feed_schedule_hook', 'wprss_pause_feed_source', 10 , 1 );
12
 
13
 
14
+ add_action( 'admin_init', 'wprss_schedule_fetch_all_feeds_cron' );
15
  /**
16
  * Creates the cron to fetch feeds every hour
17
  *
33
  }
34
 
35
 
36
+ add_action( 'admin_init', 'wprss_schedule_truncate_posts_cron' );
37
  /**
38
  * Creates the cron to truncate wprss_feed_item posts daily
39
  *
includes/feed-display.php CHANGED
@@ -182,8 +182,10 @@
182
 
183
  do_action( 'wprss_get_post_data' );
184
 
 
 
185
  // convert from Unix timestamp
186
- $date = date_i18n( $general_settings['date_format'], intval( get_post_meta( get_the_ID(), 'wprss_item_date', true ) ) );
187
 
188
  if ( $general_settings['title_link'] == 1 ) {
189
  $output .= "$link_before" . '<a ' . $display_settings['open'] . ' ' . $display_settings['follow'] . ' href="'. $permalink . '">'. get_the_title(). '</a>';
@@ -319,11 +321,6 @@
319
  $query_args['exclude'] = $args['exclude'];
320
  }
321
 
322
- if ( $display_settings['time_ago_format_enable'] === 1 ) {
323
-
324
- }
325
-
326
-
327
  $feed_items = wprss_get_feed_items_query( $query_args );
328
 
329
  do_action( 'wprss_display_template', $display_settings, $args, $feed_items );
182
 
183
  do_action( 'wprss_get_post_data' );
184
 
185
+ $timestamp = intval( get_post_meta( get_the_ID(), 'wprss_item_date', true ) );
186
+
187
  // convert from Unix timestamp
188
+ $date = date_i18n( $general_settings['date_format'], $timestamp );
189
 
190
  if ( $general_settings['title_link'] == 1 ) {
191
  $output .= "$link_before" . '<a ' . $display_settings['open'] . ' ' . $display_settings['follow'] . ' href="'. $permalink . '">'. get_the_title(). '</a>';
321
  $query_args['exclude'] = $args['exclude'];
322
  }
323
 
 
 
 
 
 
324
  $feed_items = wprss_get_feed_items_query( $query_args );
325
 
326
  do_action( 'wprss_display_template', $display_settings, $args, $feed_items );
includes/feed-importing.php CHANGED
@@ -180,6 +180,7 @@
180
  $feed->set_file_class( 'WP_SimplePie_File' );
181
 
182
  $feed->set_feed_url( $url );
 
183
 
184
  //$feed->set_cache_duration( apply_filters( 'wp_feed_cache_transient_lifetime', 12 * HOUR_IN_SECONDS, $url ) );
185
  $feed->enable_cache( FALSE );
180
  $feed->set_file_class( 'WP_SimplePie_File' );
181
 
182
  $feed->set_feed_url( $url );
183
+ $feed->force_feed( TRUE );
184
 
185
  //$feed->set_cache_duration( apply_filters( 'wp_feed_cache_transient_lifetime', 12 * HOUR_IN_SECONDS, $url ) );
186
  $feed->enable_cache( FALSE );
includes/feed-processing.php CHANGED
@@ -227,6 +227,7 @@
227
 
228
 
229
 
 
230
  add_action( 'updated_post_meta', 'wprss_update_feed_meta', 10, 4 );
231
  /**
232
  * This function is run whenever a post is saved or updated.
227
 
228
 
229
 
230
+ add_action( 'added_post_meta', 'wprss_update_feed_meta', 10, 4 );
231
  add_action( 'updated_post_meta', 'wprss_update_feed_meta', 10, 4 );
232
  /**
233
  * This function is run whenever a post is saved or updated.
includes/feed-states.php CHANGED
@@ -6,7 +6,7 @@
6
  */
7
 
8
 
9
- add_action( 'init', 'wprss_change_feed_state' );
10
  /**
11
  * Changes the state of a feed source, using POST data
12
  *
@@ -34,7 +34,7 @@
34
 
35
 
36
 
37
- add_action( 'init', 'wprss_bulk_change_state', 2 );
38
  /**
39
  * Changes the state of feed sources selected from the table bulk actions.
40
  *
@@ -79,7 +79,7 @@
79
 
80
 
81
 
82
- add_action( 'init', 'check_for_state_notice_after_redirect', 1 );
83
  /**
84
  * Checks if the 'wprss_notify_bulk_change_state' transient is set.
85
  * If it is, it will show the appropriate admin notice
6
  */
7
 
8
 
9
+ add_action( 'admin_init', 'wprss_change_feed_state' );
10
  /**
11
  * Changes the state of a feed source, using POST data
12
  *
34
 
35
 
36
 
37
+ add_action( 'admin_init', 'wprss_bulk_change_state', 2 );
38
  /**
39
  * Changes the state of feed sources selected from the table bulk actions.
40
  *
79
 
80
 
81
 
82
+ add_action( 'admin_init', 'check_for_state_notice_after_redirect', 1 );
83
  /**
84
  * Checks if the 'wprss_notify_bulk_change_state' transient is set.
85
  * If it is, it will show the appropriate admin notice
includes/roles-capabilities.php CHANGED
@@ -7,7 +7,7 @@
7
  */
8
 
9
 
10
- add_action('init', 'wprss_add_caps');
11
  /**
12
  * Add feed aggregator-specific capabilities
13
  *
7
  */
8
 
9
 
10
+ add_action( 'admin_init', 'wprss_add_caps' );
11
  /**
12
  * Add feed aggregator-specific capabilities
13
  *
includes/update.php CHANGED
@@ -225,6 +225,9 @@
225
  'limit_feed_items_age' => '',
226
  'limit_feed_items_age_unit' => 'days',
227
 
 
 
 
228
  // tracking
229
  'tracking' => 0,
230
  )
225
  'limit_feed_items_age' => '',
226
  'limit_feed_items_age_unit' => 'days',
227
 
228
+ // from version 4.0.5
229
+ 'time_ago_format_enable' => 0,
230
+
231
  // tracking
232
  'tracking' => 0,
233
  )
js/jquery.colorbox-min.js CHANGED
File without changes
readme.txt CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://www.wprssaggregator.com
5
  Tags: rss, feeds, aggregation, 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.8.1
8
- Stable tag: 4.0.4
9
  License: GPLv2 or later
10
  Imports and aggregates multiple RSS Feeds using SimplePie. Outputs feeds sorted by date (latest first).
11
 
@@ -145,6 +145,14 @@ Yes, within the [Feed to Post](http://www.wprssaggregator.com/extensions/feed-to
145
 
146
  == Changelog ==
147
 
 
 
 
 
 
 
 
 
148
  = 4.0.4 (2014-02-17) =
149
  * Enhanced: Added Activate/Pause bulk actions in the Feed Sources page.
150
  * Enhanced: Feed Sources page table has been re-designed.
5
  Tags: rss, feeds, aggregation, 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.8.1
8
+ Stable tag: 4.0.5
9
  License: GPLv2 or later
10
  Imports and aggregates multiple RSS Feeds using SimplePie. Outputs feeds sorted by date (latest first).
11
 
145
 
146
  == Changelog ==
147
 
148
+ = 4.0.5 (2014-03-03) =
149
+ * New Feature: Time ago added as an option.
150
+ * Enhanced: The plugin now allows the use of RSS and Atom feeds that do not specify the correct MIME type.
151
+ * Enhanced: Better performance due to better hook usage.
152
+ * Fixed bug: Facebook page feed URL conversion was not being triggered for new feed sources.
153
+ * Fixed bug: Styles fix for pagination.
154
+ * Fixed bug: Removed empty spaces in logging.
155
+
156
  = 4.0.4 (2014-02-17) =
157
  * Enhanced: Added Activate/Pause bulk actions in the Feed Sources page.
158
  * Enhanced: Feed Sources page table has been re-designed.
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.0.4
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.0.4
33
  * @since 1.0
34
  * @author Jean Galea <info@jeangalea.com>
35
  * @copyright Copyright (c) 2012-2013, Jean Galea
@@ -43,11 +43,11 @@
43
 
44
  // Set the version number of the plugin.
45
  if( !defined( 'WPRSS_VERSION' ) )
46
- define( 'WPRSS_VERSION', '4.0.4', true );
47
 
48
  // Set the database version number of the plugin.
49
  if( !defined( 'WPRSS_DB_VERSION' ) )
50
- define( 'WPRSS_DB_VERSION', 12 );
51
 
52
  // Set the plugin prefix
53
  if( !defined( 'WPRSS_PREFIX' ) )
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.0.5
7
  Author: Jean Galea
8
  Author URI: http://www.wprssaggregator.com
9
  License: GPLv2
29
 
30
  /**
31
  * @package WPRSSAggregator
32
+ * @version 4.0.5
33
  * @since 1.0
34
  * @author Jean Galea <info@jeangalea.com>
35
  * @copyright Copyright (c) 2012-2013, Jean Galea
43
 
44
  // Set the version number of the plugin.
45
  if( !defined( 'WPRSS_VERSION' ) )
46
+ define( 'WPRSS_VERSION', '4.0.5', true );
47
 
48
  // Set the database version number of the plugin.
49
  if( !defined( 'WPRSS_DB_VERSION' ) )
50
+ define( 'WPRSS_DB_VERSION', 13 );
51
 
52
  // Set the plugin prefix
53
  if( !defined( 'WPRSS_PREFIX' ) )