Version Description
(2014-04-03) = * New Feature: Feed items can now link to enclosure links in the feed. * Enhanced: Added a filter to allow add-ons to modify feed item queries.
Download this release
Release Info
Developer | jeangalea |
Plugin | WP RSS Aggregator |
Version | 4.1 |
Comparing to | |
See all releases |
Code changes from version 4.0.9 to 4.1
- changelog.txt +4 -0
- includes/admin-metaboxes.php +9 -1
- includes/admin-statistics.php +4 -0
- includes/admin-welcome.php +2 -2
- includes/feed-display.php +9 -1
- includes/feed-importing.php +11 -3
- readme.txt +9 -2
- wp-rss-aggregator.php +3 -3
changelog.txt
CHANGED
@@ -1,3 +1,7 @@
|
|
|
|
|
|
|
|
|
|
1 |
4.0.9 (2014-03-27)
|
2 |
Enhanced: Added a filter to modify the feeds template.
|
3 |
Fixed bug: Nested lists in feeds template.
|
1 |
+
4.1 (2014-04-03)
|
2 |
+
New Feature: Feed items can now link to enclosure links in the feed.
|
3 |
+
Enhanced: Added a filter to allow add-ons to modify feed item queries.
|
4 |
+
|
5 |
4.0.9 (2014-03-27)
|
6 |
Enhanced: Added a filter to modify the feeds template.
|
7 |
Fixed bug: Nested lists in feeds template.
|
includes/admin-metaboxes.php
CHANGED
@@ -111,6 +111,13 @@
|
|
111 |
'type' => 'number'
|
112 |
);
|
113 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
114 |
// for extensibility, allows more meta fields to be added
|
115 |
return apply_filters( 'wprss_fields', $wprss_meta_fields );
|
116 |
}
|
@@ -159,7 +166,8 @@
|
|
159 |
|
160 |
// checkbox
|
161 |
case 'checkbox':
|
162 |
-
echo '<input type="
|
|
|
163 |
<label for="'.$field['id'].'">'.$field['desc'].'</label>';
|
164 |
break;
|
165 |
|
111 |
'type' => 'number'
|
112 |
);
|
113 |
|
114 |
+
$wprss_meta_fields[ 'enclosure' ] = array(
|
115 |
+
'label' => __( 'Link to enclosure', 'wprss' ),
|
116 |
+
'desc' => __( 'Check this box to link the feed item title to the enclosure link in the feed.', 'wprss' ),
|
117 |
+
'id' => $prefix . 'enclosure',
|
118 |
+
'type' => 'checkbox'
|
119 |
+
);
|
120 |
+
|
121 |
// for extensibility, allows more meta fields to be added
|
122 |
return apply_filters( 'wprss_fields', $wprss_meta_fields );
|
123 |
}
|
166 |
|
167 |
// checkbox
|
168 |
case 'checkbox':
|
169 |
+
echo '<input type="hidden" name="'.$field['id'].'" value="false" />';
|
170 |
+
echo '<input type="checkbox" name="'.$field['id'].'" id="'.$field['id'].'" value="true" ', checked( $meta, 'true' ), ' />
|
171 |
<label for="'.$field['id'].'">'.$field['desc'].'</label>';
|
172 |
break;
|
173 |
|
includes/admin-statistics.php
CHANGED
@@ -10,6 +10,10 @@ if ( !defined( 'WPRSS_TRACKING_INTEVAL' ) )
|
|
10 |
add_action( 'admin_init', 'wprss_send_tracking_data' );
|
11 |
function wprss_send_tracking_data() {
|
12 |
|
|
|
|
|
|
|
|
|
13 |
// Get the tracking transient.
|
14 |
$transient = get_transient( 'wprss_tracking_transient' );
|
15 |
// If the transient did not expire, exit out of function
|
10 |
add_action( 'admin_init', 'wprss_send_tracking_data' );
|
11 |
function wprss_send_tracking_data() {
|
12 |
|
13 |
+
// Check the tracking option - if turned off, exit out of function
|
14 |
+
$tracking_option = wprss_get_general_setting('tracking');
|
15 |
+
if ( $tracking_option == 0 || $tracking_option == FALSE ) return;
|
16 |
+
|
17 |
// Get the tracking transient.
|
18 |
$transient = get_transient( 'wprss_tracking_transient' );
|
19 |
// If the transient did not expire, exit out of function
|
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>
|
78 |
-
<li><strong>
|
79 |
</ul>
|
80 |
|
81 |
|
74 |
|
75 |
<h3>Changelog for v<?php echo WPRSS_VERSION; ?></h3>
|
76 |
<ul>
|
77 |
+
<li><strong>New Feature:</strong> Feed items can now link to enclosure links in the feed.</li>
|
78 |
+
<li><strong>Enhanced:</strong> Added a filter to allow add-ons to modify feed item queries.</li>
|
79 |
</ul>
|
80 |
|
81 |
|
includes/feed-display.php
CHANGED
@@ -174,7 +174,9 @@
|
|
174 |
while ( $feed_items->have_posts() ) {
|
175 |
$feed_items->the_post();
|
176 |
$permalink = get_post_meta( get_the_ID(), 'wprss_item_permalink', true );
|
|
|
177 |
$feed_source_id = get_post_meta( get_the_ID(), 'wprss_feed_id', true );
|
|
|
178 |
$source_name = get_the_title( $feed_source_id );
|
179 |
$source_url = get_post_meta( $feed_source_id, 'wprss_site_url', true );
|
180 |
// Fallback for feeds created with older versions of the plugin
|
@@ -189,7 +191,11 @@
|
|
189 |
$date = date_i18n( $general_settings['date_format'], $timestamp );
|
190 |
|
191 |
if ( $general_settings['title_link'] == 1 ) {
|
192 |
-
$
|
|
|
|
|
|
|
|
|
193 |
}
|
194 |
else {
|
195 |
$output .= "$link_before" . get_the_title();
|
@@ -319,6 +325,8 @@
|
|
319 |
$query_args['exclude'] = $args['exclude'];
|
320 |
}
|
321 |
|
|
|
|
|
322 |
$feed_items = wprss_get_feed_items_query( $query_args );
|
323 |
|
324 |
do_action( 'wprss_display_template', $display_settings, $args, $feed_items );
|
174 |
while ( $feed_items->have_posts() ) {
|
175 |
$feed_items->the_post();
|
176 |
$permalink = get_post_meta( get_the_ID(), 'wprss_item_permalink', true );
|
177 |
+
$enclosure = get_post_meta( get_the_ID(), 'wprss_item_enclosure', true );
|
178 |
$feed_source_id = get_post_meta( get_the_ID(), 'wprss_feed_id', true );
|
179 |
+
$link_enclosure = get_post_meta( $feed_source_id, 'wprss_enclosure', true );
|
180 |
$source_name = get_the_title( $feed_source_id );
|
181 |
$source_url = get_post_meta( $feed_source_id, 'wprss_site_url', true );
|
182 |
// Fallback for feeds created with older versions of the plugin
|
191 |
$date = date_i18n( $general_settings['date_format'], $timestamp );
|
192 |
|
193 |
if ( $general_settings['title_link'] == 1 ) {
|
194 |
+
$feed_item_title_link = $permalink;
|
195 |
+
if ( $link_enclosure === 'true' && $enclosure !== '' ) {
|
196 |
+
$feed_item_title_link = $enclosure;
|
197 |
+
}
|
198 |
+
$output .= "$link_before" . '<a ' . $display_settings['open'] . ' ' . $display_settings['follow'] . ' href="'. $feed_item_title_link . '">'. get_the_title(). '</a>';
|
199 |
}
|
200 |
else {
|
201 |
$output .= "$link_before" . get_the_title();
|
325 |
$query_args['exclude'] = $args['exclude'];
|
326 |
}
|
327 |
|
328 |
+
$query_args = apply_filters( 'wprss_process_shortcode_args', $query_args, $args );
|
329 |
+
|
330 |
$feed_items = wprss_get_feed_items_query( $query_args );
|
331 |
|
332 |
do_action( 'wprss_display_template', $display_settings, $args, $feed_items );
|
includes/feed-importing.php
CHANGED
@@ -268,6 +268,13 @@
|
|
268 |
// Convert the url if it is a video url and the conversion is enabled in the settings.
|
269 |
$permalink = wprss_convert_video_permalink( $item->get_permalink() );
|
270 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
271 |
|
272 |
/* OLD NORMALIZATION CODE - TO NORMALIZE URLS FROM PROXY URLS
|
273 |
$response = wp_remote_head( $permalink );
|
@@ -318,7 +325,7 @@
|
|
318 |
}
|
319 |
|
320 |
// Create and insert post meta into the DB
|
321 |
-
wprss_items_insert_post_meta( $inserted_ID, $item, $feed_ID, $permalink );
|
322 |
|
323 |
// Remember newly added permalink
|
324 |
$existing_permalinks[] = $permalink;
|
@@ -342,8 +349,9 @@
|
|
342 |
*
|
343 |
* @since 2.3
|
344 |
*/
|
345 |
-
function wprss_items_insert_post_meta( $inserted_ID, $item, $feed_ID, $
|
346 |
-
update_post_meta( $inserted_ID, 'wprss_item_permalink', $
|
|
|
347 |
update_post_meta( $inserted_ID, 'wprss_item_description', $item->get_description() );
|
348 |
update_post_meta( $inserted_ID, 'wprss_item_date', $item->get_date( 'U' ) ); // Save as Unix timestamp format
|
349 |
update_post_meta( $inserted_ID, 'wprss_feed_id', $feed_ID);
|
268 |
// Convert the url if it is a video url and the conversion is enabled in the settings.
|
269 |
$permalink = wprss_convert_video_permalink( $item->get_permalink() );
|
270 |
|
271 |
+
// Save the enclosure URL
|
272 |
+
$enclosure_url = '';
|
273 |
+
if ( $enclosure = $item->get_enclosure(0) ) {
|
274 |
+
if ( $enclosure->get_link() ) {
|
275 |
+
$enclosure_url = $enclosure->get_link();
|
276 |
+
}
|
277 |
+
}
|
278 |
|
279 |
/* OLD NORMALIZATION CODE - TO NORMALIZE URLS FROM PROXY URLS
|
280 |
$response = wp_remote_head( $permalink );
|
325 |
}
|
326 |
|
327 |
// Create and insert post meta into the DB
|
328 |
+
wprss_items_insert_post_meta( $inserted_ID, $item, $feed_ID, $permalink, $enclosure_url );
|
329 |
|
330 |
// Remember newly added permalink
|
331 |
$existing_permalinks[] = $permalink;
|
349 |
*
|
350 |
* @since 2.3
|
351 |
*/
|
352 |
+
function wprss_items_insert_post_meta( $inserted_ID, $item, $feed_ID, $permalink, $enclosure_url ) {
|
353 |
+
update_post_meta( $inserted_ID, 'wprss_item_permalink', $permalink );
|
354 |
+
update_post_meta( $inserted_ID, 'wprss_item_enclosure', $enclosure_url );
|
355 |
update_post_meta( $inserted_ID, 'wprss_item_description', $item->get_description() );
|
356 |
update_post_meta( $inserted_ID, 'wprss_item_date', $item->get_date( 'U' ) ); // Save as Unix timestamp format
|
357 |
update_post_meta( $inserted_ID, 'wprss_feed_id', $feed_ID);
|
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.
|
9 |
License: GPLv2 or later
|
10 |
Imports and aggregates multiple RSS Feeds using SimplePie. Outputs feeds sorted by date (latest first).
|
11 |
|
@@ -70,9 +70,12 @@ WP RSS Aggregator uses the SimplePie class to import and handle feeds, and store
|
|
70 |
= Translations =
|
71 |
Italian - Davide De Maestri
|
72 |
|
73 |
-
=
|
|
|
74 |
* [WP Kube](http://www.wpkube.com/wp-rss-aggregator-wordpress-review/)
|
|
|
75 |
* [Kikolani](http://kikolani.com/create-latest-posts-portfolio-page-wp-rss-aggregator.html)
|
|
|
76 |
* [WP Eka](www.wpeka.com/wp-rss-aggregators-plugin.html)
|
77 |
* [IndexWP](www.indexwp.com/wp-rss-aggregator-plugin-review/)
|
78 |
* [WPulsar](http://www.wpulsar.com/wp-rss-aggregator-plugin-feed-to-posts-keyword-filtering-review/)
|
@@ -156,6 +159,10 @@ The full documentation section can be found on the [WP RSS Aggregator website](w
|
|
156 |
|
157 |
== Changelog ==
|
158 |
|
|
|
|
|
|
|
|
|
159 |
= 4.0.9 (2014-03-27) =
|
160 |
* Enhanced: Added a filter to modify the feeds template.
|
161 |
* Fixed bug: Nested lists in feeds template.
|
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 |
|
70 |
= Translations =
|
71 |
Italian - Davide De Maestri
|
72 |
|
73 |
+
= As featured on =
|
74 |
+
* [WP Beginner] (http://www.wpbeginner.com/plugins/how-to-fetch-feeds-in-wordpress-using-wp-rss-aggregator/)
|
75 |
* [WP Kube](http://www.wpkube.com/wp-rss-aggregator-wordpress-review/)
|
76 |
+
* [Torquemag](http://torquemag.io/wp-rss-aggregator-review-do-more-with-rss-feeds/)
|
77 |
* [Kikolani](http://kikolani.com/create-latest-posts-portfolio-page-wp-rss-aggregator.html)
|
78 |
+
* [ManageWP Plugins of the Month](http://managewp.com/free-wordpress-plugins-march-2014)
|
79 |
* [WP Eka](www.wpeka.com/wp-rss-aggregators-plugin.html)
|
80 |
* [IndexWP](www.indexwp.com/wp-rss-aggregator-plugin-review/)
|
81 |
* [WPulsar](http://www.wpulsar.com/wp-rss-aggregator-plugin-feed-to-posts-keyword-filtering-review/)
|
159 |
|
160 |
== Changelog ==
|
161 |
|
162 |
+
= 4.1 (2014-04-03) =
|
163 |
+
* New Feature: Feed items can now link to enclosure links in the feed.
|
164 |
+
* Enhanced: Added a filter to allow add-ons to modify feed item queries.
|
165 |
+
|
166 |
= 4.0.9 (2014-03-27) =
|
167 |
* Enhanced: Added a filter to modify the feeds template.
|
168 |
* Fixed bug: Nested lists in feeds template.
|
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 |
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.
|
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.
|
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
|
7 |
Author: Jean Galea
|
8 |
Author URI: http://www.wprssaggregator.com
|
9 |
License: GPLv2
|
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 |
|
44 |
// Set the version number of the plugin.
|
45 |
if( !defined( 'WPRSS_VERSION' ) )
|
46 |
+
define( 'WPRSS_VERSION', '4.1', true );
|
47 |
|
48 |
// Set the database version number of the plugin.
|
49 |
if( !defined( 'WPRSS_DB_VERSION' ) )
|