Version Description
Download this release
Release Info
Developer | phpaddicted |
Plugin | RSS Post Importer |
Version | 2.0.3 |
Comparing to | |
See all releases |
Code changes from version 2.0.2 to 2.0.3
- app/class-rss-post-importer.php +1 -1
- app/templates/feed-table-row.php +1 -1
- app/templates/feed-table.php +41 -41
- app/templates/settings-table.php +1 -1
- index.php +2 -2
- readme.txt +5 -1
app/class-rss-post-importer.php
CHANGED
@@ -45,7 +45,7 @@ class rssPostImporter {
|
|
45 |
'post_template' => "{\$content}\nSource: {\$feed_title}",
|
46 |
'post_status' => 'publish',
|
47 |
'author_id' => 1,
|
48 |
-
'allow_comments' =>
|
49 |
'block_indexing' => false,
|
50 |
'keywords' => array()
|
51 |
);
|
45 |
'post_template' => "{\$content}\nSource: {\$feed_title}",
|
46 |
'post_status' => 'publish',
|
47 |
'author_id' => 1,
|
48 |
+
'allow_comments' => 'open',
|
49 |
'block_indexing' => false,
|
50 |
'keywords' => array()
|
51 |
);
|
app/templates/feed-table-row.php
CHANGED
@@ -44,7 +44,7 @@ if(is_array($f['category_id'])){
|
|
44 |
</td>
|
45 |
<td><?php echo $f['url']; ?></td>
|
46 |
<td><?php echo $f['max_posts']; ?></td>
|
47 |
-
|
48 |
</tr>
|
49 |
<tr id="edit_<?php echo ($f['id']); ?>" class="edit-row <?php echo $show; ?>">
|
50 |
<td colspan="4">
|
44 |
</td>
|
45 |
<td><?php echo $f['url']; ?></td>
|
46 |
<td><?php echo $f['max_posts']; ?></td>
|
47 |
+
<!-- <td width="20%"><?php //echo $category; ?></td>-->
|
48 |
</tr>
|
49 |
<tr id="edit_<?php echo ($f['id']); ?>" class="edit-row <?php echo $show; ?>">
|
50 |
<td colspan="4">
|
app/templates/feed-table.php
CHANGED
@@ -1,42 +1,42 @@
|
|
1 |
-
<table class="widefat rss_pi-table" id="rss_pi-table">
|
2 |
-
<thead>
|
3 |
-
<tr>
|
4 |
-
<th><?php _e("Feed name", 'rss_pi'); ?></th>
|
5 |
-
<th><?php _e("Feed url", 'rss_pi'); ?></th>
|
6 |
-
<th><?php _e("Max posts / import", 'rss_pi'); ?></th>
|
7 |
-
|
8 |
-
</tr>
|
9 |
-
</thead>
|
10 |
-
<tbody class="rss-rows">
|
11 |
-
<?php
|
12 |
-
$saved_ids = array();
|
13 |
-
|
14 |
-
if (is_array($this->options['feeds']) && count($this->options['feeds']) > 0) :
|
15 |
-
foreach ($this->options['feeds'] as $f) :
|
16 |
-
$category = get_the_category($f['category_id']);
|
17 |
-
array_push($saved_ids, $f['id']);
|
18 |
-
|
19 |
-
include( RSS_PI_PATH . 'app/templates/feed-table-row.php');
|
20 |
-
endforeach;
|
21 |
-
else :
|
22 |
-
?>
|
23 |
-
<tr>
|
24 |
-
<td colspan="4" class="empty_table">
|
25 |
-
<?php _e('You haven\'t specified any feeds to import yet, why don\'t you <a href="#" class="add-row">add one now</a>?', "rss_pi"); ?>
|
26 |
-
</td>
|
27 |
-
</tr>
|
28 |
-
<?php
|
29 |
-
endif
|
30 |
-
?>
|
31 |
-
</tbody>
|
32 |
-
<tfoot>
|
33 |
-
<tr>
|
34 |
-
<td colspan="4">
|
35 |
-
<a href="#" class="button button-large button-primary add-row">
|
36 |
-
<?php _e('Add new feed', "rss_pi"); ?>
|
37 |
-
</a>
|
38 |
-
<input type="hidden" name="ids" id="ids" value="<?php echo(join($saved_ids, ',')); ?>" />
|
39 |
-
</td>
|
40 |
-
</tr>
|
41 |
-
</tfoot>
|
42 |
</table>
|
1 |
+
<table class="widefat rss_pi-table" id="rss_pi-table">
|
2 |
+
<thead>
|
3 |
+
<tr>
|
4 |
+
<th><?php _e("Feed name", 'rss_pi'); ?></th>
|
5 |
+
<th><?php _e("Feed url", 'rss_pi'); ?></th>
|
6 |
+
<th><?php _e("Max posts / import", 'rss_pi'); ?></th>
|
7 |
+
<!--<th><?php _e("Category", 'rss_pi'); ?></th>-->
|
8 |
+
</tr>
|
9 |
+
</thead>
|
10 |
+
<tbody class="rss-rows">
|
11 |
+
<?php
|
12 |
+
$saved_ids = array();
|
13 |
+
|
14 |
+
if (is_array($this->options['feeds']) && count($this->options['feeds']) > 0) :
|
15 |
+
foreach ($this->options['feeds'] as $f) :
|
16 |
+
$category = get_the_category($f['category_id']);
|
17 |
+
array_push($saved_ids, $f['id']);
|
18 |
+
|
19 |
+
include( RSS_PI_PATH . 'app/templates/feed-table-row.php');
|
20 |
+
endforeach;
|
21 |
+
else :
|
22 |
+
?>
|
23 |
+
<tr>
|
24 |
+
<td colspan="4" class="empty_table">
|
25 |
+
<?php _e('You haven\'t specified any feeds to import yet, why don\'t you <a href="#" class="add-row">add one now</a>?', "rss_pi"); ?>
|
26 |
+
</td>
|
27 |
+
</tr>
|
28 |
+
<?php
|
29 |
+
endif
|
30 |
+
?>
|
31 |
+
</tbody>
|
32 |
+
<tfoot>
|
33 |
+
<tr>
|
34 |
+
<td colspan="4">
|
35 |
+
<a href="#" class="button button-large button-primary add-row">
|
36 |
+
<?php _e('Add new feed', "rss_pi"); ?>
|
37 |
+
</a>
|
38 |
+
<input type="hidden" name="ids" id="ids" value="<?php echo(join($saved_ids, ',')); ?>" />
|
39 |
+
</td>
|
40 |
+
</tr>
|
41 |
+
</tfoot>
|
42 |
</table>
|
app/templates/settings-table.php
CHANGED
@@ -125,7 +125,7 @@
|
|
125 |
<td>
|
126 |
<ul class="radiolist">
|
127 |
<li>
|
128 |
-
<label><input type="radio" id="allow_comments" name="allow_comments" value="
|
129 |
</li>
|
130 |
<li>
|
131 |
<label><input type="radio" id="allow_comments" name="allow_comments" value="false" <?php echo($this->options['settings']['allow_comments'] == 'false' ? 'checked="checked"' : ''); ?> /> <?php _e('No', 'rss_pi'); ?></label>
|
125 |
<td>
|
126 |
<ul class="radiolist">
|
127 |
<li>
|
128 |
+
<label><input type="radio" id="allow_comments" name="allow_comments" value="open" <?php echo($this->options['settings']['allow_comments'] == 'open' ? 'checked="checked"' : ''); ?> /> <?php _e('Yes', 'rss_pi'); ?></label>
|
129 |
</li>
|
130 |
<li>
|
131 |
<label><input type="radio" id="allow_comments" name="allow_comments" value="false" <?php echo($this->options['settings']['allow_comments'] == 'false' ? 'checked="checked"' : ''); ?> /> <?php _e('No', 'rss_pi'); ?></label>
|
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.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
|
@@ -28,7 +28,7 @@ if (!defined('RSS_PI_BASENAME')) {
|
|
28 |
}
|
29 |
|
30 |
if (!defined('RSS_PI_VERSION')) {
|
31 |
-
define('RSS_PI_VERSION', '2.0.
|
32 |
}
|
33 |
|
34 |
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.0.3
|
9 |
Author URI: https://www.feedsapi.org/
|
10 |
License: GPLv2 or later
|
11 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
28 |
}
|
29 |
|
30 |
if (!defined('RSS_PI_VERSION')) {
|
31 |
+
define('RSS_PI_VERSION', '2.0.3');
|
32 |
}
|
33 |
|
34 |
if (!defined('RSS_PI_LOG_PATH')) {
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Tags: rss, feeds, import, feed, autoblog, feed aggregation, rss-feed, aggregatio
|
|
5 |
RSSImport, yahoo pipes, WP Pipes, Import XML feed , FeedSyndicate, RSSpost, RSS in Page
|
6 |
Requires at least: 3.5
|
7 |
Tested up to: 4.1
|
8 |
-
Stable tag: 2.0.
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -77,6 +77,10 @@ WP-o-Matic , WP-o-Matic, RSSImport, FeedWordPress, Syndicate Press, FeedWeb, RSS
|
|
77 |
|
78 |
== Change Log ==
|
79 |
|
|
|
|
|
|
|
|
|
80 |
= Version 2.0.2 =
|
81 |
* Block search indexing
|
82 |
* Multiple category selection for premium users
|
5 |
RSSImport, yahoo pipes, WP Pipes, Import XML feed , FeedSyndicate, RSSpost, RSS in Page
|
6 |
Requires at least: 3.5
|
7 |
Tested up to: 4.1
|
8 |
+
Stable tag: 2.0.3
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
77 |
|
78 |
== Change Log ==
|
79 |
|
80 |
+
= Version 2.0.3 =
|
81 |
+
* show Category removed from feeds section to prevent UI breaking
|
82 |
+
* Comments closed issue solved.
|
83 |
+
|
84 |
= Version 2.0.2 =
|
85 |
* Block search indexing
|
86 |
* Multiple category selection for premium users
|