WP RSS Aggregator - Version 4.1.5

Version Description

(2014-05-19) = * Enhanced: The Feed Sources table now indicates which feed sources encountered errors during the last import. * Fixed bug: Feed titles were not being decoded for HTML entities.

Download this release

Release Info

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

Code changes from version 4.1.4 to 4.1.5

changelog.txt CHANGED
@@ -1,3 +1,7 @@
 
 
 
 
1
  4.1.4 (2014-05-16)
2
  Enhanced: Minor improvements to feed importing and handling.
3
  Fixed bug: HTML entities were not being decoded in feed item titles.
1
+ 4.1.5 (2014-05-19)
2
+ Enhanced: The Feed Sources table now indicates which feed sources encountered errors during the last import.
3
+ Fixed bug: Feed titles were not being decoded for HTML entities.
4
+
5
  4.1.4 (2014-05-16)
6
  Enhanced: Minor improvements to feed importing and handling.
7
  Fixed bug: HTML entities were not being decoded in feed item titles.
css/admin-styles.css CHANGED
@@ -302,6 +302,10 @@ body.post-type-wprss_feed.edit-php table.wp-list-table.posts thead th {
302
  text-align: left;
303
  overflow: hidden;
304
  }
 
 
 
 
305
  /* ID */
306
  body.post-type-wprss_feed.edit-php table.wp-list-table.posts thead th#id {
307
  width: 50px !important;
@@ -337,6 +341,14 @@ body.post-type-wprss_feed.edit-php table.wp-list-table.posts thead th#category {
337
  }
338
 
339
 
 
 
 
 
 
 
 
 
340
  /*--------------------------------------------------------------------------
341
  *
342
  * Add-Ons
302
  text-align: left;
303
  overflow: hidden;
304
  }
305
+ /* ERRORS */
306
+ body.post-type-wprss_feed.edit-php table.wp-list-table.posts thead th#errors {
307
+ width: 20px !important;
308
+ }
309
  /* ID */
310
  body.post-type-wprss_feed.edit-php table.wp-list-table.posts thead th#id {
311
  width: 50px !important;
341
  }
342
 
343
 
344
+
345
+ .wprss-feed-error-symbol {
346
+ font-size: 1.2em;
347
+ vertical-align: middle;
348
+ color: rgb(200,0,0);
349
+ }
350
+
351
+
352
  /*--------------------------------------------------------------------------
353
  *
354
  * Add-Ons
includes/admin-display.php CHANGED
@@ -16,6 +16,7 @@
16
 
17
  $columns = array(
18
  'cb' => '<input type="checkbox" />',
 
19
  'title' => __( 'Name', 'wprss' ),
20
  'id' => __( 'ID', 'wprss' ),
21
  // 'url' => __( 'URL', 'wprss' ),
@@ -44,6 +45,13 @@
44
  function wprss_show_custom_columns( $column, $post_id ) {
45
 
46
  switch ( $column ) {
 
 
 
 
 
 
 
47
  case 'url':
48
  $url = get_post_meta( $post_id, 'wprss_url', true);
49
  echo '<a href="' . esc_url($url) . '">' . esc_url($url) . '</a>';
16
 
17
  $columns = array(
18
  'cb' => '<input type="checkbox" />',
19
+ 'errors' => '',
20
  'title' => __( 'Name', 'wprss' ),
21
  'id' => __( 'ID', 'wprss' ),
22
  // 'url' => __( 'URL', 'wprss' ),
45
  function wprss_show_custom_columns( $column, $post_id ) {
46
 
47
  switch ( $column ) {
48
+ case 'errors':
49
+ $errors = get_post_meta( $post_id, 'wprss_error_last_import', true );
50
+ if ( $errors === 'true') {
51
+ $msg = "This feed source experienced an error during the last feed fetch or validation check. Re-check the feed source URL or check the Error Log in the Debugging page for more details.";
52
+ echo '<i title="'.$msg.'" class="wprss-feed-error-symbol fa fa-warning fa-fixed-width"></i>';
53
+ }
54
+ break;
55
  case 'url':
56
  $url = get_post_meta( $post_id, 'wprss_url', true);
57
  echo '<a href="' . esc_url($url) . '">' . esc_url($url) . '</a>';
includes/admin-welcome.php CHANGED
@@ -74,8 +74,8 @@
74
 
75
  <h3>Changelog for v<?php echo WPRSS_VERSION; ?></h3>
76
  <ul>
77
- <li><strong>Enhanced:</strong> Minor improvements to feed importing and handling.</li>
78
- <li><strong>Fixed bug:</strong> HTML entities were not being decoded in feed item titles.</li>
79
  </ul>
80
 
81
 
74
 
75
  <h3>Changelog for v<?php echo WPRSS_VERSION; ?></h3>
76
  <ul>
77
+ <li><strong>Enhanced:</strong> The Feed Sources table now indicates which feed sources encountered errors during their last import.</li>
78
+ <li><strong>Fixed bug:</strong> Feed titles were not being decoded for HTML entities.</li>
79
  </ul>
80
 
81
 
includes/feed-display.php CHANGED
@@ -198,7 +198,7 @@
198
  $date = date_i18n( $general_settings['date_format'], $timestamp );
199
 
200
  // Prepare the title. Decode any html entitities
201
- $feed_item_title = html_entity_decode( get_the_title() );
202
 
203
  if ( $general_settings['title_link'] == 1 ) {
204
  $feed_item_title_link = $permalink;
198
  $date = date_i18n( $general_settings['date_format'], $timestamp );
199
 
200
  // Prepare the title. Decode any html entitities
201
+ $feed_item_title = htmlentities( get_the_title() );
202
 
203
  if ( $general_settings['title_link'] == 1 ) {
204
  $feed_item_title_link = $permalink;
includes/feed-importing.php CHANGED
@@ -58,11 +58,8 @@
58
  $new_items = array();
59
  foreach( $items as $item ) {
60
  $permalink = $item->get_permalink();
61
- if ( !in_array( $permalink, $existing_permalinks ) ) {
62
- if ( ! is_array( $new_items ) ) {
63
- $new_items = array();
64
- }
65
- $new_items = array_push( $new_items, $item );
66
  }
67
  }
68
 
@@ -95,6 +92,8 @@
95
  if ( !empty( $items_to_insert ) ) {
96
  wprss_items_insert_post( $items_to_insert, $feed_ID );
97
  }
 
 
98
  }
99
  }
100
 
@@ -190,10 +189,13 @@
190
 
191
  // Convert the feed error into a WP_Error, if applicable
192
  if ( $feed->error() ) {
 
 
 
193
  return new WP_Error( 'simplepie-error', $feed->error() );
194
  }
195
-
196
- // If no error, return the feed
197
  return $feed;
198
  }
199
 
@@ -328,6 +330,7 @@
328
  $existing_permalinks[] = $permalink;
329
  }
330
  else {
 
331
  wprss_log_obj( 'Failed to insert post', $feed_item, 'wprss_items_insert_post > wp_insert_post' );
332
  }
333
  }
58
  $new_items = array();
59
  foreach( $items as $item ) {
60
  $permalink = $item->get_permalink();
61
+ if ( !in_array( trim($permalink), $existing_permalinks ) ) {
62
+ $new_items[] = $item;
 
 
 
63
  }
64
  }
65
 
92
  if ( !empty( $items_to_insert ) ) {
93
  wprss_items_insert_post( $items_to_insert, $feed_ID );
94
  }
95
+ } else {
96
+ wprss_log("The feed URL is not valid! Please recheck.");
97
  }
98
  }
99
 
189
 
190
  // Convert the feed error into a WP_Error, if applicable
191
  if ( $feed->error() ) {
192
+ if ( $source !== NULL ) {
193
+ update_post_meta( $source, "wprss_error_last_import", "true" );
194
+ }
195
  return new WP_Error( 'simplepie-error', $feed->error() );
196
  }
197
+ // If no error, return the feed and remove any error meta
198
+ delete_post_meta( $source, "wprss_error_last_import" );
199
  return $feed;
200
  }
201
 
330
  $existing_permalinks[] = $permalink;
331
  }
332
  else {
333
+ update_post_meta( $source, "wprss_error_last_import", "true" );
334
  wprss_log_obj( 'Failed to insert post', $feed_item, 'wprss_items_insert_post > wp_insert_post' );
335
  }
336
  }
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.8.1
8
- Stable tag: 4.1.4
9
  License: GPLv2 or later
10
  Imports and aggregates multiple RSS Feeds using SimplePie. Outputs feeds sorted by date (latest first).
11
 
@@ -23,9 +23,9 @@ With WP RSS Aggregator, you can:
23
 
24
  You can add any number of feeds through an administration panel, the plugin will then pull feed items from these sites, merge them and display them in date order.
25
 
26
- To display your imported feed items, you can use a shortcode or call the display function directly from within your theme.
27
 
28
- __More Features__:
29
 
30
  * Export a custom RSS feed based on your feed sources
31
  * Pagination
@@ -162,6 +162,10 @@ The full documentation section can be found on the [WP RSS Aggregator website](w
162
 
163
  == Changelog ==
164
 
 
 
 
 
165
  = 4.1.4 (2014-05-16) =
166
  * Enhanced: Minor improvements to feed importing and handling.
167
  * Fixed bug: HTML entities were not being decoded in feed item titles.
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.8.1
8
+ Stable tag: 4.1.5
9
  License: GPLv2 or later
10
  Imports and aggregates multiple RSS Feeds using SimplePie. Outputs feeds sorted by date (latest first).
11
 
23
 
24
  You can add any number of feeds through an administration panel, the plugin will then pull feed items from these sites, merge them and display them in date order.
25
 
26
+ To [display your imported feed items](http://wordpress.org/plugins/wp-rss-aggregator/screenshots/), you can use a shortcode or call the display function directly from within your theme.
27
 
28
+ = Highlighted Features =
29
 
30
  * Export a custom RSS feed based on your feed sources
31
  * Pagination
162
 
163
  == Changelog ==
164
 
165
+ = 4.1.5 (2014-05-19) =
166
+ * Enhanced: The Feed Sources table now indicates which feed sources encountered errors during the last import.
167
+ * Fixed bug: Feed titles were not being decoded for HTML entities.
168
+
169
  = 4.1.4 (2014-05-16) =
170
  * Enhanced: Minor improvements to feed importing and handling.
171
  * Fixed bug: HTML entities were not being decoded in feed item titles.
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.1.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.1.4
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.1.4', true );
47
 
48
  // Set the database version number of the plugin.
49
  if( !defined( 'WPRSS_DB_VERSION' ) )
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.1.5
7
  Author: Jean Galea
8
  Author URI: http://www.wprssaggregator.com
9
  License: GPLv2
29
 
30
  /**
31
  * @package WPRSSAggregator
32
+ * @version 4.1.5
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.1.5', true );
47
 
48
  // Set the database version number of the plugin.
49
  if( !defined( 'WPRSS_DB_VERSION' ) )