Version Description
(2014-04-28) = * Enhanced: Added a force feed option, for valid RSS feeds with incorrect header content types. * Fixed bug: HTML entities in feed item titles are now being decoded.
Download this release
Release Info
Developer | jeangalea |
Plugin | WP RSS Aggregator |
Version | 4.1.3 |
Comparing to | |
See all releases |
Code changes from version 4.1.2 to 4.1.3
- changelog.txt +4 -0
- css/admin-styles.css +3 -0
- includes/admin-metaboxes.php +40 -4
- includes/admin-welcome.php +2 -3
- includes/feed-importing.php +12 -2
- readme.txt +10 -4
- wp-rss-aggregator.php +3 -3
changelog.txt
CHANGED
@@ -1,3 +1,7 @@
|
|
|
|
|
|
|
|
|
|
1 |
4.1.2 (2014-04-22)
|
2 |
Enhanced: Improved the custom feed, by allowing a custom title.
|
3 |
Enhanced: Improved shortcode, by adding the "pagination" parameter.
|
1 |
+
4.1.3 (2014-04-28)
|
2 |
+
Enhanced: Added a force feed option, for valid RSS feeds with incorrect header content types.
|
3 |
+
Fixed bug: HTML entities in feed item titles are now being decoded.
|
4 |
+
|
5 |
4.1.2 (2014-04-22)
|
6 |
Enhanced: Improved the custom feed, by allowing a custom title.
|
7 |
Enhanced: Improved shortcode, by adding the "pagination" parameter.
|
css/admin-styles.css
CHANGED
@@ -291,6 +291,9 @@ div.inside .wprss-meta-side-setting:last-child {
|
|
291 |
border-bottom: 0 solid transparent;
|
292 |
}
|
293 |
|
|
|
|
|
|
|
294 |
|
295 |
/******************************
|
296 |
* FEED SOURCES PAGE COLUMNS
|
291 |
border-bottom: 0 solid transparent;
|
292 |
}
|
293 |
|
294 |
+
input[type="checkbox"]#wprss-force-feed {
|
295 |
+
margin-left: 10px;
|
296 |
+
}
|
297 |
|
298 |
/******************************
|
299 |
* FEED SOURCES PAGE COLUMNS
|
includes/admin-metaboxes.php
CHANGED
@@ -286,6 +286,7 @@
|
|
286 |
}
|
287 |
} // end foreach
|
288 |
|
|
|
289 |
$state = ( isset( $_POST['wprss_state'] ) )? $_POST['wprss_state'] : 'active';
|
290 |
$activate = ( isset( $_POST['wprss_activate_feed'] ) )? stripslashes( $_POST['wprss_activate_feed'] ) : '';
|
291 |
$pause = ( isset( $_POST['wprss_pause_feed'] ) )? stripslashes( $_POST['wprss_pause_feed'] ) : '';
|
@@ -295,6 +296,7 @@
|
|
295 |
$old_update_interval = get_post_meta( $post_id, 'wprss_update_interval', TRUE );
|
296 |
|
297 |
// Update the feed source meta
|
|
|
298 |
update_post_meta( $post_id, 'wprss_activate_feed', $activate );
|
299 |
update_post_meta( $post_id, 'wprss_pause_feed', $pause );
|
300 |
update_post_meta( $post_id, 'wprss_age_limit', $age_limit );
|
@@ -330,7 +332,7 @@
|
|
330 |
$feed_url = get_post_meta( $post->ID, 'wprss_url', true );
|
331 |
|
332 |
if( ! empty( $feed_url ) ) {
|
333 |
-
$feed = wprss_fetch_feed( $feed_url );
|
334 |
if ( ! is_wp_error( $feed ) ) {
|
335 |
$items = $feed->get_items();
|
336 |
// Figure out how many total items there are, but limit it to 5.
|
@@ -357,9 +359,42 @@
|
|
357 |
}
|
358 |
echo '</ul>';
|
359 |
}
|
360 |
-
else
|
361 |
-
|
362 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
363 |
}
|
364 |
|
365 |
else _e( 'No feed URL defined yet', 'wprss' );
|
@@ -516,6 +551,7 @@
|
|
516 |
</div>
|
517 |
</div>
|
518 |
|
|
|
519 |
<?php
|
520 |
}
|
521 |
|
286 |
}
|
287 |
} // end foreach
|
288 |
|
289 |
+
$force_feed = ( isset( $_POST['wprss_force_feed'] ) )? $_POST['wprss_force_feed'] : 'false';
|
290 |
$state = ( isset( $_POST['wprss_state'] ) )? $_POST['wprss_state'] : 'active';
|
291 |
$activate = ( isset( $_POST['wprss_activate_feed'] ) )? stripslashes( $_POST['wprss_activate_feed'] ) : '';
|
292 |
$pause = ( isset( $_POST['wprss_pause_feed'] ) )? stripslashes( $_POST['wprss_pause_feed'] ) : '';
|
296 |
$old_update_interval = get_post_meta( $post_id, 'wprss_update_interval', TRUE );
|
297 |
|
298 |
// Update the feed source meta
|
299 |
+
update_post_meta( $post_id, 'wprss_force_feed', $force_feed );
|
300 |
update_post_meta( $post_id, 'wprss_activate_feed', $activate );
|
301 |
update_post_meta( $post_id, 'wprss_pause_feed', $pause );
|
302 |
update_post_meta( $post_id, 'wprss_age_limit', $age_limit );
|
332 |
$feed_url = get_post_meta( $post->ID, 'wprss_url', true );
|
333 |
|
334 |
if( ! empty( $feed_url ) ) {
|
335 |
+
$feed = wprss_fetch_feed( $feed_url, $post->ID );
|
336 |
if ( ! is_wp_error( $feed ) ) {
|
337 |
$items = $feed->get_items();
|
338 |
// Figure out how many total items there are, but limit it to 5.
|
359 |
}
|
360 |
echo '</ul>';
|
361 |
}
|
362 |
+
else {
|
363 |
+
?>
|
364 |
+
<span class="invalid-feed-url">
|
365 |
+
<strong><?php _e( 'Invalid feed URL', 'wprss' ); ?></strong> -
|
366 |
+
<?php _e( 'Double check the feed source URL setting above.' , 'wprss' ); ?>
|
367 |
+
</span>
|
368 |
+
|
369 |
+
<p><?php _e( 'Not sure where to find the RSS feed on a website?', 'wprss' ); ?>
|
370 |
+
<a target="_blank" href="http://webtrends.about.com/od/webfeedsyndicationrss/ss/rss_howto.htm">
|
371 |
+
<?php _e( 'Click here' ); ?>
|
372 |
+
</a>
|
373 |
+
<?php _e( 'for a visual guide' , 'wprss' ); ?>
|
374 |
+
</p>
|
375 |
+
|
376 |
+
<?php
|
377 |
+
}
|
378 |
+
|
379 |
+
$force_feed = get_post_meta( $post->ID, 'wprss_force_feed', TRUE ); ?>
|
380 |
+
|
381 |
+
<hr/>
|
382 |
+
|
383 |
+
<p>
|
384 |
+
<label for="wprss-force-feed">
|
385 |
+
<strong><?php _e('Are you seeing an error, but sure the feed URL is correct?', 'wprss' ); ?></strong>
|
386 |
+
</label>
|
387 |
+
</p>
|
388 |
+
<p>
|
389 |
+
<label for="wprss-force-feed">Force the feed</label>
|
390 |
+
<input type="hidden" name="wprss_force_feed" value="false" />
|
391 |
+
<input type="checkbox" name="wprss_force_feed" id="wprss-force-feed" value="true" <?php echo checked( $force_feed, 'true' ); ?> />
|
392 |
+
</p>
|
393 |
+
<p class="description">
|
394 |
+
<strong>Note:</strong> This will disable auto discovery of the RSS feed, meaning you will have to use the feed's URL. Using the site's URL will not work.
|
395 |
+
</p>
|
396 |
+
|
397 |
+
<?php
|
398 |
}
|
399 |
|
400 |
else _e( 'No feed URL defined yet', 'wprss' );
|
551 |
</div>
|
552 |
</div>
|
553 |
|
554 |
+
|
555 |
<?php
|
556 |
}
|
557 |
|
includes/admin-welcome.php
CHANGED
@@ -74,9 +74,8 @@
|
|
74 |
|
75 |
<h3>Changelog for v<?php echo WPRSS_VERSION; ?></h3>
|
76 |
<ul>
|
77 |
-
<li><strong>Enhanced:</strong>
|
78 |
-
<li><strong>
|
79 |
-
<li><strong>Enhanced:</strong> Modified a filter to fix some bugs in the add-ons.</li>
|
80 |
</ul>
|
81 |
|
82 |
|
74 |
|
75 |
<h3>Changelog for v<?php echo WPRSS_VERSION; ?></h3>
|
76 |
<ul>
|
77 |
+
<li><strong>Enhanced:</strong> Added a force feed option, for valid RSS feeds with incorrect header content types.</li>
|
78 |
+
<li><strong>Fixed bug:</strong> HTML entities in feed item titles are now being decoded.</li>
|
|
|
79 |
</ul>
|
80 |
|
81 |
|
includes/feed-importing.php
CHANGED
@@ -184,7 +184,17 @@
|
|
184 |
|
185 |
$feed->set_feed_url( $url );
|
186 |
$feed->set_autodiscovery_level( SIMPLEPIE_LOCATOR_ALL );
|
187 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
188 |
$feed->set_timeout( 30 );
|
189 |
|
190 |
//$feed->set_cache_duration( apply_filters( 'wp_feed_cache_transient_lifetime', 12 * HOUR_IN_SECONDS, $url ) );
|
@@ -299,7 +309,7 @@
|
|
299 |
$feed_item = apply_filters(
|
300 |
'wprss_populate_post_data',
|
301 |
array(
|
302 |
-
'post_title' => $item->get_title(),
|
303 |
'post_content' => '',
|
304 |
'post_status' => 'publish',
|
305 |
'post_type' => 'wprss_feed_item',
|
184 |
|
185 |
$feed->set_feed_url( $url );
|
186 |
$feed->set_autodiscovery_level( SIMPLEPIE_LOCATOR_ALL );
|
187 |
+
|
188 |
+
// If a feed source was passed
|
189 |
+
if ( $source !== NULL ) {
|
190 |
+
// Get the force feed option for the feed source
|
191 |
+
$force_feed = get_post_meta( $source, 'wprss_force_feed', TRUE );
|
192 |
+
// If turned on, force the feed
|
193 |
+
if ( $force_feed == 'true' ) {
|
194 |
+
$feed->force_feed( TRUE );
|
195 |
+
}
|
196 |
+
}
|
197 |
+
|
198 |
$feed->set_timeout( 30 );
|
199 |
|
200 |
//$feed->set_cache_duration( apply_filters( 'wp_feed_cache_transient_lifetime', 12 * HOUR_IN_SECONDS, $url ) );
|
309 |
$feed_item = apply_filters(
|
310 |
'wprss_populate_post_data',
|
311 |
array(
|
312 |
+
'post_title' => html_entity_decode( $item->get_title() ),
|
313 |
'post_content' => '',
|
314 |
'post_status' => 'publish',
|
315 |
'post_type' => 'wprss_feed_item',
|
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.1.
|
9 |
License: GPLv2 or later
|
10 |
Imports and aggregates multiple RSS Feeds using SimplePie. Outputs feeds sorted by date (latest first).
|
11 |
|
@@ -69,16 +69,18 @@ WP RSS Aggregator uses the SimplePie class to import and handle feeds, and store
|
|
69 |
|
70 |
= Translations =
|
71 |
Italian - Davide De Maestri
|
|
|
72 |
Spanish - Andrew Kurtis
|
73 |
|
74 |
= As featured on =
|
75 |
-
* [WP Beginner]
|
76 |
-
* [WPEXplorer]
|
77 |
* [WP Kube](http://www.wpkube.com/wp-rss-aggregator-wordpress-review/)
|
78 |
* [Torquemag](http://torquemag.io/wp-rss-aggregator-review-do-more-with-rss-feeds/)
|
|
|
79 |
* [Kikolani](http://kikolani.com/create-latest-posts-portfolio-page-wp-rss-aggregator.html)
|
80 |
* [ManageWP Plugins of the Month](http://managewp.com/free-wordpress-plugins-march-2014)
|
81 |
-
* [WP Eka](www.wpeka.com/wp-rss-aggregators-plugin.html)
|
82 |
* [IndexWP](www.indexwp.com/wp-rss-aggregator-plugin-review/)
|
83 |
* [WPulsar](http://www.wpulsar.com/wp-rss-aggregator-plugin-feed-to-posts-keyword-filtering-review/)
|
84 |
* [Kevin Muldoon](http://www.kevinmuldoon.com/wp-rss-aggregator-wordpress-plugin/)
|
@@ -161,6 +163,10 @@ The full documentation section can be found on the [WP RSS Aggregator website](w
|
|
161 |
|
162 |
== Changelog ==
|
163 |
|
|
|
|
|
|
|
|
|
164 |
= 4.1.2 (2014-04-22) =
|
165 |
* Enhanced: Improved the custom feed, by allowing a custom title.
|
166 |
* Enhanced: Improved shortcode, by adding the "pagination" parameter.
|
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.1.3
|
9 |
License: GPLv2 or later
|
10 |
Imports and aggregates multiple RSS Feeds using SimplePie. Outputs feeds sorted by date (latest first).
|
11 |
|
69 |
|
70 |
= Translations =
|
71 |
Italian - Davide De Maestri
|
72 |
+
|
73 |
Spanish - Andrew Kurtis
|
74 |
|
75 |
= As featured on =
|
76 |
+
* [WP Beginner](http://www.wpbeginner.com/plugins/how-to-fetch-feeds-in-wordpress-using-wp-rss-aggregator/)
|
77 |
+
* [WPEXplorer](http://www.wpexplorer.com/custom-rss-aggregator-plugin/)
|
78 |
* [WP Kube](http://www.wpkube.com/wp-rss-aggregator-wordpress-review/)
|
79 |
* [Torquemag](http://torquemag.io/wp-rss-aggregator-review-do-more-with-rss-feeds/)
|
80 |
+
* [MyWPExpert](http://www.mywpexpert.com/wordpress-rss-aggregator-plugin)
|
81 |
* [Kikolani](http://kikolani.com/create-latest-posts-portfolio-page-wp-rss-aggregator.html)
|
82 |
* [ManageWP Plugins of the Month](http://managewp.com/free-wordpress-plugins-march-2014)
|
83 |
+
* [WP Eka](http://www.wpeka.com/wp-rss-aggregators-plugin.html)
|
84 |
* [IndexWP](www.indexwp.com/wp-rss-aggregator-plugin-review/)
|
85 |
* [WPulsar](http://www.wpulsar.com/wp-rss-aggregator-plugin-feed-to-posts-keyword-filtering-review/)
|
86 |
* [Kevin Muldoon](http://www.kevinmuldoon.com/wp-rss-aggregator-wordpress-plugin/)
|
163 |
|
164 |
== Changelog ==
|
165 |
|
166 |
+
= 4.1.3 (2014-04-28) =
|
167 |
+
* Enhanced: Added a force feed option, for valid RSS feeds with incorrect header content types.
|
168 |
+
* Fixed bug: HTML entities in feed item titles are now being decoded.
|
169 |
+
|
170 |
= 4.1.2 (2014-04-22) =
|
171 |
* Enhanced: Improved the custom feed, by allowing a custom title.
|
172 |
* Enhanced: Improved shortcode, by adding the "pagination" parameter.
|
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.
|
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.
|
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.
|
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.3
|
7 |
Author: Jean Galea
|
8 |
Author URI: http://www.wprssaggregator.com
|
9 |
License: GPLv2
|
29 |
|
30 |
/**
|
31 |
* @package WPRSSAggregator
|
32 |
+
* @version 4.1.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.1.3', true );
|
47 |
|
48 |
// Set the database version number of the plugin.
|
49 |
if( !defined( 'WPRSS_DB_VERSION' ) )
|