RSS Post Importer - Version 2.2.1

Version Description

Download this release

Release Info

Developer koralyne
Plugin Icon 128x128 RSS Post Importer
Version 2.2.1
Comparing to
See all releases

Code changes from version 2.2.0 to 2.2.1

app/assets/js/main.js CHANGED
@@ -1,7 +1,6 @@
1
  (function($){
2
 
3
  $('document').ready(function(){
4
-
5
  // Edit-buttons
6
  $('body').on('click', 'a.toggle-edit', function () {
7
  $('#edit_' + $(this).attr('data-target')).toggleClass('show');
@@ -15,8 +14,11 @@ $('document').ready(function(){
15
  $('#display_' + $(this).attr('data-target')).remove();
16
  update_ids();
17
  return false;
 
 
18
  });
19
 
 
20
  // status-buttons
21
  $('body').on('click', 'a.status-row', function () {
22
  var action = $(this).attr('data-action');
@@ -250,8 +252,15 @@ $('document').ready(function(){
250
 
251
  if (typeof(myParam1) == 'undefined')
252
  {
253
-
254
- window.location.assign(window.location.href+='&version=2.2.0');
 
 
 
 
 
 
 
255
  }
256
 
257
  else{}
1
  (function($){
2
 
3
  $('document').ready(function(){
 
4
  // Edit-buttons
5
  $('body').on('click', 'a.toggle-edit', function () {
6
  $('#edit_' + $(this).attr('data-target')).toggleClass('show');
14
  $('#display_' + $(this).attr('data-target')).remove();
15
  update_ids();
16
  return false;
17
+
18
+
19
  });
20
 
21
+
22
  // status-buttons
23
  $('body').on('click', 'a.status-row', function () {
24
  var action = $(this).attr('data-action');
252
 
253
  if (typeof(myParam1) == 'undefined')
254
  {
255
+ if(new_js_url=='')
256
+ {
257
+ var api_add = "normal";
258
+ }
259
+ else
260
+ {
261
+ var api_add = "premium";
262
+ }
263
+ window.location.assign(window.location.href+='&version='+new_js_version+'&type='+api_add);
264
  }
265
 
266
  else{}
app/class-rss-post-importer.php CHANGED
@@ -5,6 +5,7 @@
5
  *
6
  * @author mobilova UG (haftungsbeschränkt) <rsspostimporter@feedsapi.com>
7
  */
 
8
  class rssPostImporter {
9
 
10
  /**
@@ -29,6 +30,7 @@ class rssPostImporter {
29
  /**
30
  * Start
31
  */
 
32
  function __construct() {
33
 
34
  // populate the options first
@@ -36,9 +38,27 @@ class rssPostImporter {
36
 
37
  // do any upgrade if needed
38
  $this->upgrade();
39
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
40
  // setup this plugin options page link
41
- $this->page_link = admin_url('options-general.php?page=rss_pi&version='.RSS_PI_VERSION);
42
 
43
  // hook translations
44
  add_action('plugins_loaded', array($this, 'localize'));
5
  *
6
  * @author mobilova UG (haftungsbeschränkt) <rsspostimporter@feedsapi.com>
7
  */
8
+
9
  class rssPostImporter {
10
 
11
  /**
30
  /**
31
  * Start
32
  */
33
+
34
  function __construct() {
35
 
36
  // populate the options first
38
 
39
  // do any upgrade if needed
40
  $this->upgrade();
41
+
42
+ $settings = array(
43
+ 'feeds_api_key' => $_POST['feeds_api_key']
44
+ );
45
+ //$obj = new rssPIAdminProcessor();
46
+ global $rss_post_importer;
47
+
48
+ // check if submitted api key is valid
49
+ $var_link = $this->is_valid_key($settings['feeds_api_key']);
50
+
51
+ if($var_link=='')
52
+ {
53
+ $api_url = "normal";
54
+ }
55
+ else
56
+ {
57
+ $api_url = "premium";
58
+ }
59
+
60
  // setup this plugin options page link
61
+ $new_api_url = $this->page_link = admin_url('options-general.php?page=rss_pi&version='.RSS_PI_VERSION.'&type='.$api_url);
62
 
63
  // hook translations
64
  add_action('plugins_loaded', array($this, 'localize'));
app/classes/admin/class-rss-pi-admin-processor.php CHANGED
@@ -241,7 +241,7 @@ class rssPIAdminProcessor {
241
  // check if submitted api key is valid
242
  $this->is_key_valid = $rss_post_importer->is_valid_key($settings['feeds_api_key']);
243
  // save key validity state
244
- $settings['is_key_valid'] = $this->is_key_valid;
245
 
246
  // filter the settings and then send them back for saving
247
  return $this->filter($settings);
@@ -272,7 +272,7 @@ class rssPIAdminProcessor {
272
  private function process_feeds($ids) {
273
 
274
 
275
- echo $sts_id = $_POST['sts_id'];
276
 
277
  $status_id = array();
278
  if(!empty($sts_id))
241
  // check if submitted api key is valid
242
  $this->is_key_valid = $rss_post_importer->is_valid_key($settings['feeds_api_key']);
243
  // save key validity state
244
+ $settings['is_key_valid'] = $this->is_key_valid;
245
 
246
  // filter the settings and then send them back for saving
247
  return $this->filter($settings);
272
  private function process_feeds($ids) {
273
 
274
 
275
+ $sts_id = $_POST['sts_id'];
276
 
277
  $status_id = array();
278
  if(!empty($sts_id))
app/templates/admin-ui.php CHANGED
@@ -1,5 +1,10 @@
 
1
  <div class="wrap">
2
  <div id="main_ui">
 
 
 
 
3
 
4
  <h2><?php _e("Rss Post Importer Settings", 'rss-post-importer'); ?></h2>
5
 
@@ -56,4 +61,7 @@
56
          if (window.addEventListener) {window.addEventListener('load', _onload, false);}
57
          else {window.attachEvent('onload', _onload)}
58
      }());
59
- </script>
 
 
 
1
+
2
  <div class="wrap">
3
  <div id="main_ui">
4
+ <?php $new_api_url_2 = $rss_post_importer->is_valid_key($this->options['settings']['feeds_api_key']); $new_version = RSS_PI_VERSION; ?>
5
+
6
+
7
+
8
 
9
  <h2><?php _e("Rss Post Importer Settings", 'rss-post-importer'); ?></h2>
10
 
61
          if (window.addEventListener) {window.addEventListener('load', _onload, false);}
62
          else {window.attachEvent('onload', _onload)}
63
      }());
64
+ var new_js_url = "<?php echo $new_api_url_2; ?>";
65
+ var new_js_version = "<?php echo $new_version; ?>";
66
+
67
+ </script>
index.php CHANGED
@@ -5,7 +5,7 @@
5
  Plugin URI: https://wordpress.org/plugins/rss-post-importer/
6
  Description: This plugin lets you set up an import posts from one or several rss-feeds and save them as posts on your site, simple and flexible.
7
  Author: feedsapi
8
- Version: 2.2.0
9
  Author URI: https://www.feedsapi.org/
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -27,7 +27,7 @@ if (!defined('RSS_PI_BASENAME')) {
27
  }
28
 
29
  if (!defined('RSS_PI_VERSION')) {
30
- define('RSS_PI_VERSION', '2.2.0');
31
  }
32
 
33
  if (!defined('RSS_PI_LOG_PATH')) {
5
  Plugin URI: https://wordpress.org/plugins/rss-post-importer/
6
  Description: This plugin lets you set up an import posts from one or several rss-feeds and save them as posts on your site, simple and flexible.
7
  Author: feedsapi
8
+ Version: 2.2.1
9
  Author URI: https://www.feedsapi.org/
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
27
  }
28
 
29
  if (!defined('RSS_PI_VERSION')) {
30
+ define('RSS_PI_VERSION', '2.2.1');
31
  }
32
 
33
  if (!defined('RSS_PI_LOG_PATH')) {
readme.txt CHANGED
@@ -1,7 +1,7 @@
1
  === RSS Post Importer ===
2
  Contributors: feedsapi
3
  Donate link: https://www.feedsapi.org/
4
- Tags: rss, feeds, import, feed, autoblog, feed aggregation, rss-feed, aggregation, atom, feed, rss, syndication, FeedWordPress, autoblog aggregator, Autoblogger, autoblogging, feed import, rss multi importer, feed reader, feed to post, multi feed import, multi feed importer, multi import, multi rss feeds, multiple feed import, multiple feeds, multiple rss feeds, rss, rss aggregator, rss feader, RSS import, rss to post, content curation, RSS Retriever, RSS fetch feed, WP RSS Aggregator, AutoPost, RSS Feed to Post, RSSImport, yahoo pipes, WP Pipes, Import XML feed , FeedSyndicate, RSSpost, RSS in Page
5
  Requires at least: 3.5
6
  Tested up to: 4.2.4
7
  Stable tag: c
@@ -75,7 +75,7 @@ Not only does this WordPress RSS Aggregator Plugin import a snippet of the rss f
75
 
76
  When you start importing rss feeds as a part of your content backup, autoblogging or blogging strategy, you'll be able to reap the benefits of increased content and a larger fan base, which will translate into more traffic and more revenue or dollars for your business!
77
 
78
- **PS**: By the way, this RSS Aggregator plugin is not a shortcode for just displaying a bunch of links from an rss feeds like some of the following plugins:
79
 
80
  WP-o-Matic, WP-o-Matic, RSSImport, FeedWordPress, Syndicate Press, FeedWeb, RSS Just Better, CyberSyn, CSV 2 Post, Simple Feed Copyright, WP Syndicate, HungryFEED, Feedzy , WP Pipes and many other I can't list here. **RSS Post Importer imports data from a feed and saves it as full stand alone posts.**
81
 
@@ -124,6 +124,8 @@ Learn more (and get detailed instructions) in our [contribute guide](http://jetp
124
 
125
  == Change Log ==
126
 
 
 
127
 
128
  = Version 2.2.0 =
129
  * Small Bugs fixing and Open Graph tweaks
1
  === RSS Post Importer ===
2
  Contributors: feedsapi
3
  Donate link: https://www.feedsapi.org/
4
+ Tags: rss aggregation, wordpress autoblog aggregator, Autoblogger, rss autopost and syndicator, blog content curation, feedsyndicate, feedwordpress, multiple rss feed importer, rss feeds to post, content syndication, blog migration, yahoo pipes
5
  Requires at least: 3.5
6
  Tested up to: 4.2.4
7
  Stable tag: c
75
 
76
  When you start importing rss feeds as a part of your content backup, autoblogging or blogging strategy, you'll be able to reap the benefits of increased content and a larger fan base, which will translate into more traffic and more revenue or dollars for your business!
77
 
78
+ **PS**: By the way, if RSS Post Importer doesn't work out for you, you might want to try one of these cool alternative plugins
79
 
80
  WP-o-Matic, WP-o-Matic, RSSImport, FeedWordPress, Syndicate Press, FeedWeb, RSS Just Better, CyberSyn, CSV 2 Post, Simple Feed Copyright, WP Syndicate, HungryFEED, Feedzy , WP Pipes and many other I can't list here. **RSS Post Importer imports data from a feed and saves it as full stand alone posts.**
81
 
124
 
125
  == Change Log ==
126
 
127
+ = Version 2.2.1 =
128
+ * Bug fixing and improvement.
129
 
130
  = Version 2.2.0 =
131
  * Small Bugs fixing and Open Graph tweaks