Version Description
(2019-04-01) = * Fixed an issue with Feed to Post not being able to show feed items in the shortcode. * Fixed deprecation notices on PHP 7.3.
Download this release
Release Info
Developer | markzahra |
Plugin | WP RSS Aggregator |
Version | 4.12.3 |
Comparing to | |
See all releases |
Code changes from version 4.12.2 to 4.12.3
- includes/feed-display.php +9 -3
- includes/shortcodes.php +7 -2
- readme.txt +5 -1
- vendor/autoload.php +1 -1
- vendor/composer/autoload_real.php +7 -7
- vendor/composer/autoload_static.php +4 -4
- wp-rss-aggregator.php +18 -21
includes/feed-display.php
CHANGED
@@ -48,7 +48,7 @@
|
|
48 |
*/
|
49 |
function wprss_render_feed_item( $ID = NULL, $default = '', $args = array() ) {
|
50 |
$ID = ( $ID === NULL )? get_the_ID() : $ID;
|
51 |
-
if (
|
52 |
|
53 |
// Prepare the options
|
54 |
$general_settings = get_option( 'wprss_settings_general' );
|
@@ -261,12 +261,18 @@
|
|
261 |
}
|
262 |
|
263 |
$feed_items_args = array(
|
264 |
-
|
265 |
'posts_per_page' => $posts_per_page,
|
266 |
'orderby' => 'date',
|
267 |
'order' => 'DESC',
|
268 |
'paged' => $paged,
|
269 |
-
'suppress_filters' => true
|
|
|
|
|
|
|
|
|
|
|
|
|
270 |
);
|
271 |
|
272 |
if ( isset($settings['pagination']) ) {
|
48 |
*/
|
49 |
function wprss_render_feed_item( $ID = NULL, $default = '', $args = array() ) {
|
50 |
$ID = ( $ID === NULL )? get_the_ID() : $ID;
|
51 |
+
if ( is_feed() ) return $default;
|
52 |
|
53 |
// Prepare the options
|
54 |
$general_settings = get_option( 'wprss_settings_general' );
|
261 |
}
|
262 |
|
263 |
$feed_items_args = array(
|
264 |
+
'post_type' => get_post_types(),
|
265 |
'posts_per_page' => $posts_per_page,
|
266 |
'orderby' => 'date',
|
267 |
'order' => 'DESC',
|
268 |
'paged' => $paged,
|
269 |
+
'suppress_filters' => true,
|
270 |
+
'meta_query' => array(
|
271 |
+
array(
|
272 |
+
'key' => 'wprss_feed_id',
|
273 |
+
'compare' => 'EXISTS',
|
274 |
+
)
|
275 |
+
)
|
276 |
);
|
277 |
|
278 |
if ( isset($settings['pagination']) ) {
|
includes/shortcodes.php
CHANGED
@@ -25,7 +25,12 @@
|
|
25 |
ob_start(); // start an output buffer to output of the following function
|
26 |
wprss_display_feed_items( $atts );
|
27 |
$feed_items = ob_get_clean(); // save the current buffer and clear it
|
28 |
-
|
|
|
|
|
|
|
|
|
|
|
29 |
return apply_filters( 'wprss_shortcode_output', $feed_items );
|
30 |
}
|
31 |
|
@@ -62,4 +67,4 @@
|
|
62 |
return $output;
|
63 |
}
|
64 |
// Register the single feed item shortcode
|
65 |
-
add_shortcode( 'wp-rss-aggregator-feed-item', 'wprss_shortcode_single');
|
25 |
ob_start(); // start an output buffer to output of the following function
|
26 |
wprss_display_feed_items( $atts );
|
27 |
$feed_items = ob_get_clean(); // save the current buffer and clear it
|
28 |
+
|
29 |
+
// Remove Feed to Post's shortcode override. This is a temporary solution and will be replaced as on 4.13
|
30 |
+
if (class_exists('WPRSS_FTP')) {
|
31 |
+
remove_filter('wprss_shortcode_output', array(WPRSS_FTP::get_instance(), 'override_shortcode'));
|
32 |
+
}
|
33 |
+
|
34 |
return apply_filters( 'wprss_shortcode_output', $feed_items );
|
35 |
}
|
36 |
|
67 |
return $output;
|
68 |
}
|
69 |
// Register the single feed item shortcode
|
70 |
+
add_shortcode( 'wp-rss-aggregator-feed-item', 'wprss_shortcode_single');
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Tags: RSS import, RSS aggregator, autoblog, content curation, feed to post
|
|
5 |
Requires at least: 4.0 or higher
|
6 |
Tested up to: 5.1
|
7 |
Requires PHP: 5.3.9 or higher
|
8 |
-
Stable tag: 4.12.
|
9 |
License: GPLv3
|
10 |
|
11 |
WP RSS Aggregator is the original & most popular WordPress solution for importing RSS feeds, auto-blogging, content curation & aggregation.
|
@@ -268,6 +268,10 @@ Our complete Knowledge Base with FAQs included can be found [here](https://kb.wp
|
|
268 |
|
269 |
== Changelog ==
|
270 |
|
|
|
|
|
|
|
|
|
271 |
= 4.12.2 (2019-03-26) =
|
272 |
* Fixed an admin capability bug that disallowed admin users from fetching feed items.
|
273 |
|
5 |
Requires at least: 4.0 or higher
|
6 |
Tested up to: 5.1
|
7 |
Requires PHP: 5.3.9 or higher
|
8 |
+
Stable tag: 4.12.3
|
9 |
License: GPLv3
|
10 |
|
11 |
WP RSS Aggregator is the original & most popular WordPress solution for importing RSS feeds, auto-blogging, content curation & aggregation.
|
268 |
|
269 |
== Changelog ==
|
270 |
|
271 |
+
= 4.12.3 (2019-04-01) =
|
272 |
+
* Fixed an issue with Feed to Post not being able to show feed items in the shortcode.
|
273 |
+
* Fixed deprecation notices on PHP 7.3.
|
274 |
+
|
275 |
= 4.12.2 (2019-03-26) =
|
276 |
* Fixed an admin capability bug that disallowed admin users from fetching feed items.
|
277 |
|
vendor/autoload.php
CHANGED
@@ -4,4 +4,4 @@
|
|
4 |
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
-
return
|
4 |
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
+
return ComposerAutoloaderInit807e9fb4c93a6d1c8a8ad11ef9bab6df::getLoader();
|
vendor/composer/autoload_real.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
-
class
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
@@ -19,15 +19,15 @@ class ComposerAutoloaderInit3f8da02c8fe4fc53ceb94aa6d8d76a7b
|
|
19 |
return self::$loader;
|
20 |
}
|
21 |
|
22 |
-
spl_autoload_register(array('
|
23 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
24 |
-
spl_autoload_unregister(array('
|
25 |
|
26 |
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
27 |
if ($useStaticLoader) {
|
28 |
require_once __DIR__ . '/autoload_static.php';
|
29 |
|
30 |
-
call_user_func(\Composer\Autoload\
|
31 |
} else {
|
32 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
33 |
foreach ($map as $namespace => $path) {
|
@@ -48,19 +48,19 @@ class ComposerAutoloaderInit3f8da02c8fe4fc53ceb94aa6d8d76a7b
|
|
48 |
$loader->register(true);
|
49 |
|
50 |
if ($useStaticLoader) {
|
51 |
-
$includeFiles = Composer\Autoload\
|
52 |
} else {
|
53 |
$includeFiles = require __DIR__ . '/autoload_files.php';
|
54 |
}
|
55 |
foreach ($includeFiles as $fileIdentifier => $file) {
|
56 |
-
|
57 |
}
|
58 |
|
59 |
return $loader;
|
60 |
}
|
61 |
}
|
62 |
|
63 |
-
function
|
64 |
{
|
65 |
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
66 |
require $file;
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
+
class ComposerAutoloaderInit807e9fb4c93a6d1c8a8ad11ef9bab6df
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
19 |
return self::$loader;
|
20 |
}
|
21 |
|
22 |
+
spl_autoload_register(array('ComposerAutoloaderInit807e9fb4c93a6d1c8a8ad11ef9bab6df', 'loadClassLoader'), true, true);
|
23 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
24 |
+
spl_autoload_unregister(array('ComposerAutoloaderInit807e9fb4c93a6d1c8a8ad11ef9bab6df', 'loadClassLoader'));
|
25 |
|
26 |
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
27 |
if ($useStaticLoader) {
|
28 |
require_once __DIR__ . '/autoload_static.php';
|
29 |
|
30 |
+
call_user_func(\Composer\Autoload\ComposerStaticInit807e9fb4c93a6d1c8a8ad11ef9bab6df::getInitializer($loader));
|
31 |
} else {
|
32 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
33 |
foreach ($map as $namespace => $path) {
|
48 |
$loader->register(true);
|
49 |
|
50 |
if ($useStaticLoader) {
|
51 |
+
$includeFiles = Composer\Autoload\ComposerStaticInit807e9fb4c93a6d1c8a8ad11ef9bab6df::$files;
|
52 |
} else {
|
53 |
$includeFiles = require __DIR__ . '/autoload_files.php';
|
54 |
}
|
55 |
foreach ($includeFiles as $fileIdentifier => $file) {
|
56 |
+
composerRequire807e9fb4c93a6d1c8a8ad11ef9bab6df($fileIdentifier, $file);
|
57 |
}
|
58 |
|
59 |
return $loader;
|
60 |
}
|
61 |
}
|
62 |
|
63 |
+
function composerRequire807e9fb4c93a6d1c8a8ad11ef9bab6df($fileIdentifier, $file)
|
64 |
{
|
65 |
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
66 |
require $file;
|
vendor/composer/autoload_static.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
-
class
|
8 |
{
|
9 |
public static $files = array (
|
10 |
'320cde22f66dd4f5d3fd621d3e88b98f' => __DIR__ . '/..' . '/symfony/polyfill-ctype/bootstrap.php',
|
@@ -85,9 +85,9 @@ class ComposerStaticInit3f8da02c8fe4fc53ceb94aa6d8d76a7b
|
|
85 |
public static function getInitializer(ClassLoader $loader)
|
86 |
{
|
87 |
return \Closure::bind(function () use ($loader) {
|
88 |
-
$loader->prefixLengthsPsr4 =
|
89 |
-
$loader->prefixDirsPsr4 =
|
90 |
-
$loader->prefixesPsr0 =
|
91 |
|
92 |
}, null, ClassLoader::class);
|
93 |
}
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
+
class ComposerStaticInit807e9fb4c93a6d1c8a8ad11ef9bab6df
|
8 |
{
|
9 |
public static $files = array (
|
10 |
'320cde22f66dd4f5d3fd621d3e88b98f' => __DIR__ . '/..' . '/symfony/polyfill-ctype/bootstrap.php',
|
85 |
public static function getInitializer(ClassLoader $loader)
|
86 |
{
|
87 |
return \Closure::bind(function () use ($loader) {
|
88 |
+
$loader->prefixLengthsPsr4 = ComposerStaticInit807e9fb4c93a6d1c8a8ad11ef9bab6df::$prefixLengthsPsr4;
|
89 |
+
$loader->prefixDirsPsr4 = ComposerStaticInit807e9fb4c93a6d1c8a8ad11ef9bab6df::$prefixDirsPsr4;
|
90 |
+
$loader->prefixesPsr0 = ComposerStaticInit807e9fb4c93a6d1c8a8ad11ef9bab6df::$prefixesPsr0;
|
91 |
|
92 |
}, null, ClassLoader::class);
|
93 |
}
|
wp-rss-aggregator.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: WP RSS Aggregator
|
4 |
* Plugin URI: https://www.wprssaggregator.com/#utm_source=wpadmin&utm_medium=plugin&utm_campaign=wpraplugin
|
5 |
* Description: Imports and aggregates multiple RSS Feeds.
|
6 |
-
* Version: 4.12.
|
7 |
* Author: RebelCode
|
8 |
* Author URI: https://www.wprssaggregator.com
|
9 |
* Text Domain: wprss
|
@@ -30,7 +30,7 @@
|
|
30 |
|
31 |
/**
|
32 |
* @package WPRSSAggregator
|
33 |
-
* @version 4.12.
|
34 |
* @since 1.0
|
35 |
* @author RebelCode
|
36 |
* @copyright Copyright (c) 2012-2018, RebelCode Ltd.
|
@@ -44,13 +44,13 @@
|
|
44 |
|
45 |
// Set the version number of the plugin.
|
46 |
if( !defined( 'WPRSS_VERSION' ) )
|
47 |
-
define( 'WPRSS_VERSION', '4.12.
|
48 |
|
49 |
if( !defined( 'WPRSS_WP_MIN_VERSION' ) )
|
50 |
-
define( 'WPRSS_WP_MIN_VERSION', '4.0'
|
51 |
|
52 |
if( !defined( 'WPRSS_MIN_PHP_VERSION' ) )
|
53 |
-
define( 'WPRSS_MIN_PHP_VERSION', '5.3.9'
|
54 |
|
55 |
// Set the database version number of the plugin.
|
56 |
if( !defined( 'WPRSS_DB_VERSION' ) )
|
@@ -58,11 +58,11 @@
|
|
58 |
|
59 |
// Set the plugin prefix
|
60 |
if( !defined( 'WPRSS_PREFIX' ) )
|
61 |
-
define( 'WPRSS_PREFIX', 'wprss'
|
62 |
|
63 |
// Set the plugin prefix
|
64 |
if( !defined( 'WPRSS_FILE_CONSTANT' ) )
|
65 |
-
define( 'WPRSS_FILE_CONSTANT', __FILE__
|
66 |
|
67 |
// Set constant path to the plugin directory.
|
68 |
if( !defined( 'WPRSS_DIR' ) )
|
@@ -74,35 +74,35 @@
|
|
74 |
|
75 |
// Set the constant path to the plugin's javascript directory.
|
76 |
if( !defined( 'WPRSS_JS' ) )
|
77 |
-
define( 'WPRSS_JS', WPRSS_URI . trailingslashit( 'js' )
|
78 |
|
79 |
// Set the constant path to the plugin's CSS directory.
|
80 |
if( !defined( 'WPRSS_CSS' ) )
|
81 |
-
define( 'WPRSS_CSS', WPRSS_URI . trailingslashit( 'css' )
|
82 |
|
83 |
// Set the constant path to the plugin's images directory.
|
84 |
if( !defined( 'WPRSS_IMG' ) )
|
85 |
-
define( 'WPRSS_IMG', WPRSS_URI . trailingslashit( 'images' )
|
86 |
|
87 |
// Set the constant path to the plugin's includes directory.
|
88 |
if( !defined( 'WPRSS_INC' ) )
|
89 |
-
define( 'WPRSS_INC', WPRSS_DIR . trailingslashit( 'includes' )
|
90 |
|
91 |
if( !defined( 'WPRSS_LANG' ) )
|
92 |
-
define( 'WPRSS_LANG', WPRSS_DIR . trailingslashit( 'languages' )
|
93 |
|
94 |
if( !defined( 'WPRSS_TEMPLATES' ) )
|
95 |
-
define( 'WPRSS_TEMPLATES', WPRSS_DIR . trailingslashit( 'templates' )
|
96 |
|
97 |
// Set the constant path to the plugin's log file.
|
98 |
if( !defined( 'WPRSS_LOG_FILE' ) )
|
99 |
-
define( 'WPRSS_LOG_FILE', WP_CONTENT_DIR . '/log/wprss/log'
|
100 |
|
101 |
if( !defined( 'WPRSS_LOG_FILE_EXT' ) )
|
102 |
-
define( 'WPRSS_LOG_FILE_EXT', '.txt'
|
103 |
|
104 |
if ( !defined('WPRSS_SL_STORE_URL') ) {
|
105 |
-
define( 'WPRSS_SL_STORE_URL', 'https://www.wprssaggregator.com'
|
106 |
}
|
107 |
|
108 |
if ( !defined( 'WPRSS_TEXT_DOMAIN' ) ) {
|
@@ -111,11 +111,11 @@
|
|
111 |
|
112 |
// Maximum time for the feed source to be fetched
|
113 |
if ( !defined( 'WPRSS_FEED_FETCH_TIME_LIMIT' ) ) {
|
114 |
-
define( 'WPRSS_FEED_FETCH_TIME_LIMIT', 30
|
115 |
}
|
116 |
// Maximum time for a single feed item to import
|
117 |
if ( !defined( 'WPRSS_ITEM_IMPORT_TIME_LIMIT' ) ) {
|
118 |
-
define( 'WPRSS_ITEM_IMPORT_TIME_LIMIT', 15
|
119 |
}
|
120 |
// Where to take the diagnostic tests from
|
121 |
if ( !defined( 'WPRACORE_DIAG_TESTS_DIR' ) ) {
|
@@ -273,9 +273,6 @@
|
|
273 |
/* Load the admin heartbeat functions */
|
274 |
require_once ( WPRSS_INC . 'admin-heartbeat.php' );
|
275 |
|
276 |
-
// Load the statistics functions file
|
277 |
-
require_once ( WPRSS_INC . 'admin-statistics.php' );
|
278 |
-
|
279 |
// Load the logging functions file
|
280 |
require_once ( WPRSS_INC . 'admin-log.php' );
|
281 |
|
3 |
* Plugin Name: WP RSS Aggregator
|
4 |
* Plugin URI: https://www.wprssaggregator.com/#utm_source=wpadmin&utm_medium=plugin&utm_campaign=wpraplugin
|
5 |
* Description: Imports and aggregates multiple RSS Feeds.
|
6 |
+
* Version: 4.12.3
|
7 |
* Author: RebelCode
|
8 |
* Author URI: https://www.wprssaggregator.com
|
9 |
* Text Domain: wprss
|
30 |
|
31 |
/**
|
32 |
* @package WPRSSAggregator
|
33 |
+
* @version 4.12.3
|
34 |
* @since 1.0
|
35 |
* @author RebelCode
|
36 |
* @copyright Copyright (c) 2012-2018, RebelCode Ltd.
|
44 |
|
45 |
// Set the version number of the plugin.
|
46 |
if( !defined( 'WPRSS_VERSION' ) )
|
47 |
+
define( 'WPRSS_VERSION', '4.12.3' );
|
48 |
|
49 |
if( !defined( 'WPRSS_WP_MIN_VERSION' ) )
|
50 |
+
define( 'WPRSS_WP_MIN_VERSION', '4.0' );
|
51 |
|
52 |
if( !defined( 'WPRSS_MIN_PHP_VERSION' ) )
|
53 |
+
define( 'WPRSS_MIN_PHP_VERSION', '5.3.9' );
|
54 |
|
55 |
// Set the database version number of the plugin.
|
56 |
if( !defined( 'WPRSS_DB_VERSION' ) )
|
58 |
|
59 |
// Set the plugin prefix
|
60 |
if( !defined( 'WPRSS_PREFIX' ) )
|
61 |
+
define( 'WPRSS_PREFIX', 'wprss' );
|
62 |
|
63 |
// Set the plugin prefix
|
64 |
if( !defined( 'WPRSS_FILE_CONSTANT' ) )
|
65 |
+
define( 'WPRSS_FILE_CONSTANT', __FILE__ );
|
66 |
|
67 |
// Set constant path to the plugin directory.
|
68 |
if( !defined( 'WPRSS_DIR' ) )
|
74 |
|
75 |
// Set the constant path to the plugin's javascript directory.
|
76 |
if( !defined( 'WPRSS_JS' ) )
|
77 |
+
define( 'WPRSS_JS', WPRSS_URI . trailingslashit( 'js' ) );
|
78 |
|
79 |
// Set the constant path to the plugin's CSS directory.
|
80 |
if( !defined( 'WPRSS_CSS' ) )
|
81 |
+
define( 'WPRSS_CSS', WPRSS_URI . trailingslashit( 'css' ) );
|
82 |
|
83 |
// Set the constant path to the plugin's images directory.
|
84 |
if( !defined( 'WPRSS_IMG' ) )
|
85 |
+
define( 'WPRSS_IMG', WPRSS_URI . trailingslashit( 'images' ) );
|
86 |
|
87 |
// Set the constant path to the plugin's includes directory.
|
88 |
if( !defined( 'WPRSS_INC' ) )
|
89 |
+
define( 'WPRSS_INC', WPRSS_DIR . trailingslashit( 'includes' ) );
|
90 |
|
91 |
if( !defined( 'WPRSS_LANG' ) )
|
92 |
+
define( 'WPRSS_LANG', WPRSS_DIR . trailingslashit( 'languages' ) );
|
93 |
|
94 |
if( !defined( 'WPRSS_TEMPLATES' ) )
|
95 |
+
define( 'WPRSS_TEMPLATES', WPRSS_DIR . trailingslashit( 'templates' ) );
|
96 |
|
97 |
// Set the constant path to the plugin's log file.
|
98 |
if( !defined( 'WPRSS_LOG_FILE' ) )
|
99 |
+
define( 'WPRSS_LOG_FILE', WP_CONTENT_DIR . '/log/wprss/log' );
|
100 |
|
101 |
if( !defined( 'WPRSS_LOG_FILE_EXT' ) )
|
102 |
+
define( 'WPRSS_LOG_FILE_EXT', '.txt' );
|
103 |
|
104 |
if ( !defined('WPRSS_SL_STORE_URL') ) {
|
105 |
+
define( 'WPRSS_SL_STORE_URL', 'https://www.wprssaggregator.com' );
|
106 |
}
|
107 |
|
108 |
if ( !defined( 'WPRSS_TEXT_DOMAIN' ) ) {
|
111 |
|
112 |
// Maximum time for the feed source to be fetched
|
113 |
if ( !defined( 'WPRSS_FEED_FETCH_TIME_LIMIT' ) ) {
|
114 |
+
define( 'WPRSS_FEED_FETCH_TIME_LIMIT', 30 );
|
115 |
}
|
116 |
// Maximum time for a single feed item to import
|
117 |
if ( !defined( 'WPRSS_ITEM_IMPORT_TIME_LIMIT' ) ) {
|
118 |
+
define( 'WPRSS_ITEM_IMPORT_TIME_LIMIT', 15 );
|
119 |
}
|
120 |
// Where to take the diagnostic tests from
|
121 |
if ( !defined( 'WPRACORE_DIAG_TESTS_DIR' ) ) {
|
273 |
/* Load the admin heartbeat functions */
|
274 |
require_once ( WPRSS_INC . 'admin-heartbeat.php' );
|
275 |
|
|
|
|
|
|
|
276 |
// Load the logging functions file
|
277 |
require_once ( WPRSS_INC . 'admin-log.php' );
|
278 |
|