Version Description
(2014-07-23) = * Enhanced: Facebook page feeds are now changed into RSS 2.0 feeds, rather than Atom 1.0 feeds. * Enhanced: Improved live updating performace on the Feed Sources page.
Download this release
Release Info
Developer | jeangalea |
Plugin | WP RSS Aggregator |
Version | 4.2.2 |
Comparing to | |
See all releases |
Code changes from version 4.2.1 to 4.2.2
- changelog.txt +4 -0
- includes/admin-addons.php +7 -0
- includes/admin-display.php +6 -2
- includes/admin-welcome.php +4 -10
- includes/feed-processing.php +2 -2
- includes/scripts.php +5 -4
- js/heartbeat.js +2 -1
- readme.txt +5 -1
- wp-rss-aggregator.php +4 -4
changelog.txt
CHANGED
@@ -1,3 +1,7 @@
|
|
|
|
|
|
|
|
|
|
1 |
4.2.1 (2014-07-17)
|
2 |
Enhanced: Feed Sources page is now more responsive.
|
3 |
|
1 |
+
4.2.2 (2014-07-23)
|
2 |
+
Enhanced: Improved live updating performace on the Feed Sources page.
|
3 |
+
Enhanced: Facebook page feeds are now changed into RSS 2.0 feeds, rather than Atom 1.0 feeds.
|
4 |
+
|
5 |
4.2.1 (2014-07-17)
|
6 |
Enhanced: Feed Sources page is now more responsive.
|
7 |
|
includes/admin-addons.php
CHANGED
@@ -37,6 +37,13 @@
|
|
37 |
'active' => is_plugin_active( 'wp-rss-feed-to-post/wp-rss-feed-to-post.php' ),
|
38 |
'url' => 'http://www.wprssaggregator.com/extensions/feed-to-post/'
|
39 |
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
40 |
|
41 |
?>
|
42 |
<div class="wrap">
|
37 |
'active' => is_plugin_active( 'wp-rss-feed-to-post/wp-rss-feed-to-post.php' ),
|
38 |
'url' => 'http://www.wprssaggregator.com/extensions/feed-to-post/'
|
39 |
);
|
40 |
+
$premium[] = array(
|
41 |
+
'title' => __( "WordAi", 'wprss' ),
|
42 |
+
'description' => __( "Allows you to spin the content for posts imported by Feed to Post using WordAi. Cleverly rewrite your posts without changing their meaning and maintaining human readability.", 'wprss' ),
|
43 |
+
'thumbnail' => WPRSS_IMG .'add-ons/wprss.jpg',
|
44 |
+
'active' => is_plugin_active( 'wp-rss-wordai/wp-rss-wordai.php' ),
|
45 |
+
'url' => 'http://www.wprssaggregator.com/extension/wordai/'
|
46 |
+
);
|
47 |
|
48 |
?>
|
49 |
<div class="wrap">
|
includes/admin-display.php
CHANGED
@@ -305,6 +305,7 @@
|
|
305 |
*/
|
306 |
function wprss_remove_row_actions( $actions )
|
307 |
{
|
|
|
308 |
if ( get_post_type() === 'wprss_feed_item' ) {
|
309 |
unset( $actions[ 'edit' ] );
|
310 |
unset( $actions[ 'view' ] );
|
@@ -331,7 +332,7 @@
|
|
331 |
|
332 |
$purge_feeds_row_action_text = apply_filters( 'wprss_purge_feeds_row_action_text', 'Delete items' );
|
333 |
$purge_feeds_row_action_title = apply_filters( 'wprss_purge_feeds_row_action_title', 'Delete feed items imported by this feed source' );
|
334 |
-
$actions['purge-posts'] = "<a href='".admin_url("edit.php?post_type=wprss_feed&purge-feed-items=" . get_the_ID() ) . "' title='" . __( $purge_feeds_row_action_title, 'wprss' ) . "' >" . __( $purge_feeds_row_action_text, 'wprss' ) . "</a>";
|
335 |
|
336 |
$actions['trash'] = $trash;
|
337 |
}
|
@@ -354,9 +355,12 @@
|
|
354 |
wp_schedule_single_event( time(), 'wprss_delete_feed_items_from_source_hook', array( $source_id ) );
|
355 |
// Set a transient
|
356 |
set_transient( 'wprss_delete_posts_by_source_notif', 'true', 30 );
|
|
|
357 |
update_post_meta( $source_id, 'wprss_feed_is_deleting_items', time() );
|
|
|
|
|
358 |
// Refresh the page without the GET parameter
|
359 |
-
header( 'Location: ' . admin_url( 'edit.php?post_type=wprss_feed' ) );
|
360 |
exit();
|
361 |
} else {
|
362 |
// Get the notification transient
|
305 |
*/
|
306 |
function wprss_remove_row_actions( $actions )
|
307 |
{
|
308 |
+
$page = isset( $_GET['paged'] )? '&paged=' . $_GET['paged'] : '';
|
309 |
if ( get_post_type() === 'wprss_feed_item' ) {
|
310 |
unset( $actions[ 'edit' ] );
|
311 |
unset( $actions[ 'view' ] );
|
332 |
|
333 |
$purge_feeds_row_action_text = apply_filters( 'wprss_purge_feeds_row_action_text', 'Delete items' );
|
334 |
$purge_feeds_row_action_title = apply_filters( 'wprss_purge_feeds_row_action_title', 'Delete feed items imported by this feed source' );
|
335 |
+
$actions['purge-posts'] = "<a href='".admin_url("edit.php?post_type=wprss_feed&purge-feed-items=" . get_the_ID() . $page ) . "' title='" . __( $purge_feeds_row_action_title, 'wprss' ) . "' >" . __( $purge_feeds_row_action_text, 'wprss' ) . "</a>";
|
336 |
|
337 |
$actions['trash'] = $trash;
|
338 |
}
|
355 |
wp_schedule_single_event( time(), 'wprss_delete_feed_items_from_source_hook', array( $source_id ) );
|
356 |
// Set a transient
|
357 |
set_transient( 'wprss_delete_posts_by_source_notif', 'true', 30 );
|
358 |
+
// Mark feed as deleting its items
|
359 |
update_post_meta( $source_id, 'wprss_feed_is_deleting_items', time() );
|
360 |
+
// check pagination
|
361 |
+
$page = isset( $_GET['paged'] )? '&paged=' . $_GET['paged'] : '';
|
362 |
// Refresh the page without the GET parameter
|
363 |
+
header( 'Location: ' . admin_url( 'edit.php?post_type=wprss_feed' . $page ) );
|
364 |
exit();
|
365 |
} else {
|
366 |
// Get the notification transient
|
includes/admin-welcome.php
CHANGED
@@ -100,6 +100,7 @@
|
|
100 |
<li><strong><a href="http://www.wprssaggregator.com/extension/excerpts-thumbnails/" target="wprss_et">Excerpts & Thumbnails</a></strong></li>
|
101 |
<li><strong><a href="http://www.wprssaggregator.com/extension/categories/" target="wprss_cat">Categories</a></strong></li>
|
102 |
<li><strong><a href="http://www.wprssaggregator.com/extension/keyword-filtering/" target="wprss_kf">Keyword Filtering</a></strong></li>
|
|
|
103 |
</ul>
|
104 |
</p>
|
105 |
<p>More information about add-ons can be found on our website <a href="http://www.wprssaggregator.com">www.wprssaggregator.com</a></p>
|
@@ -108,17 +109,10 @@
|
|
108 |
|
109 |
<h3>Changelog for v<?php echo WPRSS_VERSION; ?></h3>
|
110 |
<ul>
|
111 |
-
<li><strong>Enhanced:</strong>
|
|
|
112 |
</ul>
|
113 |
-
|
114 |
-
<h3>Changelog for v4.2</h3>
|
115 |
-
<ul>
|
116 |
-
<li><strong>New Feature:</strong> Can now view each feed source's imported feed items separate from other feed sources' feed items.</li>
|
117 |
-
<li><strong>Enhanced:</strong> Major visual update to the Feed Sources page with new live updates.</li>
|
118 |
-
<li><strong>Enhanced:</strong> The custom feed now includes the feed source.</li>
|
119 |
-
<li><strong>Fixed bug:</strong> Google News feeds were importing duplicate items on every update.</li>
|
120 |
-
<li><strong>Fixed bug:</strong> Multiple minor bug fixes with old filters.</li>
|
121 |
-
</ul>
|
122 |
<p>Need functionality not already available in core or the add-ons? You can <a href="http://www.wprssaggregator.com/feature-requests/">suggest new features</a>!</p>
|
123 |
|
124 |
</div>
|
100 |
<li><strong><a href="http://www.wprssaggregator.com/extension/excerpts-thumbnails/" target="wprss_et">Excerpts & Thumbnails</a></strong></li>
|
101 |
<li><strong><a href="http://www.wprssaggregator.com/extension/categories/" target="wprss_cat">Categories</a></strong></li>
|
102 |
<li><strong><a href="http://www.wprssaggregator.com/extension/keyword-filtering/" target="wprss_kf">Keyword Filtering</a></strong></li>
|
103 |
+
<li><strong><a href="http://www.wprssaggregator.com/extension/wordai/" target="wprss_ai">WordAi</a></strong></li>
|
104 |
</ul>
|
105 |
</p>
|
106 |
<p>More information about add-ons can be found on our website <a href="http://www.wprssaggregator.com">www.wprssaggregator.com</a></p>
|
109 |
|
110 |
<h3>Changelog for v<?php echo WPRSS_VERSION; ?></h3>
|
111 |
<ul>
|
112 |
+
<li><strong>Enhanced:</strong> Improved live updating performace on the Feed Sources page.</li>
|
113 |
+
<li><strong>Enhanced:</strong> Facebook page feeds are now changed into RSS 2.0 feeds, rather than Atom 1.0 feeds.</li>
|
114 |
</ul>
|
115 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
116 |
<p>Need functionality not already available in core or the add-ons? You can <a href="http://www.wprssaggregator.com/feature-requests/">suggest new features</a>!</p>
|
117 |
|
118 |
</div>
|
includes/feed-processing.php
CHANGED
@@ -263,7 +263,7 @@
|
|
263 |
# If an id is present ...
|
264 |
if ( isset( $json['id'] ) ) {
|
265 |
# Generate the final URL for this feed and update the post meta
|
266 |
-
$final_url = "http://www.facebook.com/feeds/page.php?format=
|
267 |
update_post_meta( $post_id, 'wprss_url', $final_url, $url );
|
268 |
}
|
269 |
}
|
@@ -368,7 +368,7 @@
|
|
368 |
return FALSE;
|
369 |
}
|
370 |
|
371 |
-
$diff = time() - $
|
372 |
|
373 |
$items = wprss_get_feed_items_for_source( $id );
|
374 |
if ( $items->post_count == 0 || $diff > 300 ) {
|
263 |
# If an id is present ...
|
264 |
if ( isset( $json['id'] ) ) {
|
265 |
# Generate the final URL for this feed and update the post meta
|
266 |
+
$final_url = "http://www.facebook.com/feeds/page.php?format=rss20&id=" . $json['id'];
|
267 |
update_post_meta( $post_id, 'wprss_url', $final_url, $url );
|
268 |
}
|
269 |
}
|
368 |
return FALSE;
|
369 |
}
|
370 |
|
371 |
+
$diff = time() - $is_deleting_meta;
|
372 |
|
373 |
$items = wprss_get_feed_items_for_source( $id );
|
374 |
if ( $items->post_count == 0 || $diff > 300 ) {
|
includes/scripts.php
CHANGED
@@ -39,14 +39,15 @@
|
|
39 |
wp_enqueue_script( 'wprss-admin-custom', WPRSS_JS .'admin-custom.js', array('jquery','jquery-ui-datepicker','jquery-ui-slider') );
|
40 |
wp_enqueue_script( 'jquery-ui-timepicker-addon', WPRSS_JS .'jquery-ui-timepicker-addon.js', array('jquery','jquery-ui-datepicker') );
|
41 |
wp_enqueue_style( 'jquery-style', 'http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.4/themes/smoothness/jquery-ui.css' );
|
42 |
-
// Load Heartbeat script and set dependancy for Heartbeat to ensure Heartbeat is loaded
|
43 |
-
wp_enqueue_script( 'wprss-feed-source-table-heartbeat', WPRSS_JS .'heartbeat.js', array('heartbeat') );
|
44 |
-
// Heartbeat script
|
45 |
if ( 'post' === $screen->base && 'wprss_feed' === $screen->post_type ) {
|
46 |
// Change text on post screen from 'Enter title here' to 'Enter feed name here'
|
47 |
add_filter( 'enter_title_here', 'wprss_change_title_text' );
|
48 |
}
|
49 |
-
}
|
|
|
|
|
|
|
|
|
50 |
|
51 |
else if ( 'dashboard_page_wprss-welcome' === $screen->base ) {
|
52 |
wp_enqueue_style( 'wprss-admin-styles', WPRSS_CSS . 'admin-styles.css' );
|
39 |
wp_enqueue_script( 'wprss-admin-custom', WPRSS_JS .'admin-custom.js', array('jquery','jquery-ui-datepicker','jquery-ui-slider') );
|
40 |
wp_enqueue_script( 'jquery-ui-timepicker-addon', WPRSS_JS .'jquery-ui-timepicker-addon.js', array('jquery','jquery-ui-datepicker') );
|
41 |
wp_enqueue_style( 'jquery-style', 'http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.4/themes/smoothness/jquery-ui.css' );
|
|
|
|
|
|
|
42 |
if ( 'post' === $screen->base && 'wprss_feed' === $screen->post_type ) {
|
43 |
// Change text on post screen from 'Enter title here' to 'Enter feed name here'
|
44 |
add_filter( 'enter_title_here', 'wprss_change_title_text' );
|
45 |
}
|
46 |
+
}
|
47 |
+
// Load Heartbeat script and set dependancy for Heartbeat to ensure Heartbeat is loaded
|
48 |
+
if ( 'edit' === $screen->base && $screen->post_type === 'wprss_feed' && apply_filters('wprss_ajax_polling', TRUE) === TRUE ) {
|
49 |
+
wp_enqueue_script( 'wprss-feed-source-table-heartbeat', WPRSS_JS .'heartbeat.js' );
|
50 |
+
}
|
51 |
|
52 |
else if ( 'dashboard_page_wprss-welcome' === $screen->base ) {
|
53 |
wp_enqueue_style( 'wprss-admin-styles', WPRSS_CSS . 'admin-styles.css' );
|
js/heartbeat.js
CHANGED
@@ -108,6 +108,7 @@
|
|
108 |
},
|
109 |
success: function(data, status, jqXHR){
|
110 |
updateFeedSourceTable(data);
|
|
|
111 |
},
|
112 |
dataType: 'json'
|
113 |
});
|
@@ -115,7 +116,7 @@
|
|
115 |
|
116 |
|
117 |
$(document).ready( function(){
|
118 |
-
|
119 |
});
|
120 |
|
121 |
|
108 |
},
|
109 |
success: function(data, status, jqXHR){
|
110 |
updateFeedSourceTable(data);
|
111 |
+
setTimeout(wprssFeedSourceTableAjax, 5000);
|
112 |
},
|
113 |
dataType: 'json'
|
114 |
});
|
116 |
|
117 |
|
118 |
$(document).ready( function(){
|
119 |
+
wprssFeedSourceTableAjax();
|
120 |
});
|
121 |
|
122 |
|
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.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,10 @@ The full documentation section can be found on the [WP RSS Aggregator website](w
|
|
163 |
|
164 |
== Changelog ==
|
165 |
|
|
|
|
|
|
|
|
|
166 |
= 4.2.1 (2014-07-17) =
|
167 |
* Enhanced: Feed Sources page is now more responsive.
|
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.2.2
|
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.2.2 (2014-07-23) =
|
167 |
+
* Enhanced: Facebook page feeds are now changed into RSS 2.0 feeds, rather than Atom 1.0 feeds.
|
168 |
+
* Enhanced: Improved live updating performace on the Feed Sources page.
|
169 |
+
|
170 |
= 4.2.1 (2014-07-17) =
|
171 |
* Enhanced: Feed Sources page is now more responsive.
|
172 |
|
wp-rss-aggregator.php
CHANGED
@@ -3,14 +3,14 @@
|
|
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.2.
|
7 |
Author: Jean Galea
|
8 |
Author URI: http://www.wprssaggregator.com
|
9 |
License: GPLv2
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
*/
|
12 |
|
13 |
-
/*
|
14 |
Copyright 2012-2014 Jean Galea (email : info@jeangalea.com)
|
15 |
This program is free software; you can redistribute it and/or modify
|
16 |
it under the terms of the GNU General Public License as published by
|
@@ -29,7 +29,7 @@
|
|
29 |
|
30 |
/**
|
31 |
* @package WPRSSAggregator
|
32 |
-
* @version 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.2.
|
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.2.2
|
7 |
Author: Jean Galea
|
8 |
Author URI: http://www.wprssaggregator.com
|
9 |
License: GPLv2
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
*/
|
12 |
|
13 |
+
/*
|
14 |
Copyright 2012-2014 Jean Galea (email : info@jeangalea.com)
|
15 |
This program is free software; you can redistribute it and/or modify
|
16 |
it under the terms of the GNU General Public License as published by
|
29 |
|
30 |
/**
|
31 |
* @package WPRSSAggregator
|
32 |
+
* @version 4.2.2
|
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.2.2', true );
|
47 |
|
48 |
// Set the database version number of the plugin.
|
49 |
if( !defined( 'WPRSS_DB_VERSION' ) )
|