Version Description
- 27/01/2017 =
- Added feedzy_feed_timestamp filter.
- Fixed issue with edge cases feed urls.
- Fixed error when using [] on string vars.
Download this release
Release Info
Developer | codeinwp |
Plugin | FEEDZY RSS Feeds Lite |
Version | 3.0.6 |
Comparing to | |
See all releases |
Code changes from version 3.0.5 to 3.0.6
- CHANGELOG.md +7 -5
- css/feedzy-rss-feeds.css +1 -1
- feedzy-rss-feed.php +2 -3
- includes/abstract/feedzy-rss-feeds-admin-abstract.php +19 -6
- includes/feedzy-rss-feeds.php +1 -1
- languages/feedzy-rss-feeds.pot +4 -4
- readme.txt +10 -0
CHANGELOG.md
CHANGED
@@ -1,4 +1,11 @@
|
|
1 |
|
|
|
|
|
|
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
|
7 |
|
8 |
|
9 |
-
Fixed issue with google news feeds
|
1 |
|
2 |
+
|
3 |
+
|
4 |
+
|
5 |
+
|
6 |
+
|
7 |
+
|
8 |
+
|
9 |
|
10 |
|
11 |
|
|
css/feedzy-rss-feeds.css
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
* feedzy-rss-feeds.css
|
3 |
* Feedzy RSS Feed
|
4 |
* Copyright: (c) 2016 Themeisle, themeisle.com
|
5 |
-
* Version: 3.0.
|
6 |
* Plugin Name: FEEDZY RSS Feeds
|
7 |
* Plugin URI: http://themeisle.com/plugins/feedzy-rss-feeds/
|
8 |
* Author: Themeisle
|
2 |
* feedzy-rss-feeds.css
|
3 |
* Feedzy RSS Feed
|
4 |
* Copyright: (c) 2016 Themeisle, themeisle.com
|
5 |
+
* Version: 3.0.6
|
6 |
* Plugin Name: FEEDZY RSS Feeds
|
7 |
* Plugin URI: http://themeisle.com/plugins/feedzy-rss-feeds/
|
8 |
* Author: Themeisle
|
feedzy-rss-feed.php
CHANGED
@@ -15,7 +15,7 @@
|
|
15 |
* Plugin Name: Feedzy RSS Feeds Lite
|
16 |
* Plugin URI: https://themeisle.com/plugins/feedzy-rss-feeds-lite/
|
17 |
* Description: This is a short description of what the plugin does. It's displayed in the WordPress admin area.
|
18 |
-
* Version: 3.0.
|
19 |
* Author: Themeisle
|
20 |
* Author URI: http://themeisle.com
|
21 |
* License: GPL-2.0+
|
@@ -48,8 +48,7 @@ function deactivate_feedzy_rss_feeds() {
|
|
48 |
register_activation_hook( __FILE__, 'activate_feedzy_rss_feeds' );
|
49 |
register_deactivation_hook( __FILE__, 'deactivate_feedzy_rss_feeds' );
|
50 |
/**
|
51 |
-
* The
|
52 |
-
* admin-specific hooks, and public-facing site hooks.
|
53 |
*
|
54 |
* @since 3.0.0
|
55 |
*/
|
15 |
* Plugin Name: Feedzy RSS Feeds Lite
|
16 |
* Plugin URI: https://themeisle.com/plugins/feedzy-rss-feeds-lite/
|
17 |
* Description: This is a short description of what the plugin does. It's displayed in the WordPress admin area.
|
18 |
+
* Version: 3.0.6
|
19 |
* Author: Themeisle
|
20 |
* Author URI: http://themeisle.com
|
21 |
* License: GPL-2.0+
|
48 |
register_activation_hook( __FILE__, 'activate_feedzy_rss_feeds' );
|
49 |
register_deactivation_hook( __FILE__, 'deactivate_feedzy_rss_feeds' );
|
50 |
/**
|
51 |
+
* The function that will handle the queue for autoloader.
|
|
|
52 |
*
|
53 |
* @since 3.0.0
|
54 |
*/
|
includes/abstract/feedzy-rss-feeds-admin-abstract.php
CHANGED
@@ -405,7 +405,7 @@ abstract class Feedzy_Rss_Feeds_Admin_Abstract {
|
|
405 |
if ( ! empty( $feeds ) ) {
|
406 |
$feeds = rtrim( $feeds, ',' );
|
407 |
$feeds = explode( ',', $feeds );
|
408 |
-
|
409 |
// Remove SSL from HTTP request to prevent fetching errors
|
410 |
foreach ( $feeds as $feed ) {
|
411 |
$feedURL[] = preg_replace( '/^https:/i', 'http:', $feed );
|
@@ -551,9 +551,12 @@ abstract class Feedzy_Rss_Feeds_Admin_Abstract {
|
|
551 |
}
|
552 |
|
553 |
if ( $metaArgs['date'] ) {
|
554 |
-
$
|
|
|
|
|
|
|
555 |
$contentMeta .= ' ';
|
556 |
-
$contentMeta .= __( 'at', 'feedzy-rss-feeds' ) . ' ' . date_i18n( $metaArgs['time_format'], $
|
557 |
}
|
558 |
}
|
559 |
$contentMeta = apply_filters( 'feedzy_meta_output', $contentMeta, $feedURL );
|
@@ -689,14 +692,24 @@ abstract class Feedzy_Rss_Feeds_Admin_Abstract {
|
|
689 |
if ( ! class_exists( 'SimplePie' ) ) {
|
690 |
require_once( ABSPATH . WPINC . '/feed.php' );
|
691 |
}
|
692 |
-
|
693 |
$sc = $this->get_short_code_attributes( $atts );
|
694 |
$feedURL = $this->get_feed_url( $sc['feeds'] );
|
695 |
-
|
696 |
// Load SimplePie Instance
|
697 |
$feed = fetch_feed( $feedURL );
|
698 |
// TODO report error when is an error loading the feed
|
699 |
-
if ( is_wp_error( $feed ) ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
700 |
}
|
701 |
$feed->set_sanitize_class( 'SimplePie_Sanitize' );
|
702 |
$feed->sanitize = new SimplePie_Sanitize();
|
405 |
if ( ! empty( $feeds ) ) {
|
406 |
$feeds = rtrim( $feeds, ',' );
|
407 |
$feeds = explode( ',', $feeds );
|
408 |
+
$feedURL = array();
|
409 |
// Remove SSL from HTTP request to prevent fetching errors
|
410 |
foreach ( $feeds as $feed ) {
|
411 |
$feedURL[] = preg_replace( '/^https:/i', 'http:', $feed );
|
551 |
}
|
552 |
|
553 |
if ( $metaArgs['date'] ) {
|
554 |
+
$date_time = $item->get_date( 'U' );
|
555 |
+
$date_time = apply_filters( 'feedzy_feed_timestamp',$date_time, $feedURL );
|
556 |
+
|
557 |
+
$contentMeta .= __( 'on', 'feedzy-rss-feeds' ) . ' ' . date_i18n( $metaArgs['date_format'], $date_time );
|
558 |
$contentMeta .= ' ';
|
559 |
+
$contentMeta .= __( 'at', 'feedzy-rss-feeds' ) . ' ' . date_i18n( $metaArgs['time_format'], $date_time );
|
560 |
}
|
561 |
}
|
562 |
$contentMeta = apply_filters( 'feedzy_meta_output', $contentMeta, $feedURL );
|
692 |
if ( ! class_exists( 'SimplePie' ) ) {
|
693 |
require_once( ABSPATH . WPINC . '/feed.php' );
|
694 |
}
|
|
|
695 |
$sc = $this->get_short_code_attributes( $atts );
|
696 |
$feedURL = $this->get_feed_url( $sc['feeds'] );
|
|
|
697 |
// Load SimplePie Instance
|
698 |
$feed = fetch_feed( $feedURL );
|
699 |
// TODO report error when is an error loading the feed
|
700 |
+
if ( is_wp_error( $feed ) ) {
|
701 |
+
// Fallback for different edge cases.
|
702 |
+
if ( is_array( $feedURL ) ) {
|
703 |
+
$feedURL = array_map( 'html_entity_decode',$feedURL );
|
704 |
+
} else {
|
705 |
+
$feedURL = html_entity_decode( $feedURL );
|
706 |
+
}
|
707 |
+
|
708 |
+
$feed = fetch_feed( $feedURL );
|
709 |
+
|
710 |
+
if ( is_wp_error( $feed ) ) {
|
711 |
+
return '';
|
712 |
+
}
|
713 |
}
|
714 |
$feed->set_sanitize_class( 'SimplePie_Sanitize' );
|
715 |
$feed->sanitize = new SimplePie_Sanitize();
|
includes/feedzy-rss-feeds.php
CHANGED
@@ -104,7 +104,7 @@ class Feedzy_Rss_Feeds {
|
|
104 |
*/
|
105 |
public function init() {
|
106 |
self::$plugin_name = 'feedzy-rss-feeds';
|
107 |
-
self::$version = '3.0.
|
108 |
self::$instance->load_dependencies();
|
109 |
self::$instance->set_locale();
|
110 |
self::$instance->define_admin_hooks();
|
104 |
*/
|
105 |
public function init() {
|
106 |
self::$plugin_name = 'feedzy-rss-feeds';
|
107 |
+
self::$version = '3.0.6';
|
108 |
self::$instance->load_dependencies();
|
109 |
self::$instance->set_locale();
|
110 |
self::$instance->define_admin_hooks();
|
languages/feedzy-rss-feeds.pot
CHANGED
@@ -2,9 +2,9 @@
|
|
2 |
# This file is distributed under the GPL-2.0+.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Feedzy RSS Feeds Lite 3.0.
|
6 |
"Report-Msgid-Bugs-To: https://github.com/Codeinwp/feedzy-rss-feeds/issues\n"
|
7 |
-
"POT-Creation-Date: 2017-01-
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
@@ -36,11 +36,11 @@ msgstr ""
|
|
36 |
msgid "by"
|
37 |
msgstr ""
|
38 |
|
39 |
-
#: includes/abstract/feedzy-rss-feeds-admin-abstract.php:
|
40 |
msgid "on"
|
41 |
msgstr ""
|
42 |
|
43 |
-
#: includes/abstract/feedzy-rss-feeds-admin-abstract.php:
|
44 |
msgid "at"
|
45 |
msgstr ""
|
46 |
|
2 |
# This file is distributed under the GPL-2.0+.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Feedzy RSS Feeds Lite 3.0.5\n"
|
6 |
"Report-Msgid-Bugs-To: https://github.com/Codeinwp/feedzy-rss-feeds/issues\n"
|
7 |
+
"POT-Creation-Date: 2017-01-27 10:26:59+00:00\n"
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
36 |
msgid "by"
|
37 |
msgstr ""
|
38 |
|
39 |
+
#: includes/abstract/feedzy-rss-feeds-admin-abstract.php:557
|
40 |
msgid "on"
|
41 |
msgstr ""
|
42 |
|
43 |
+
#: includes/abstract/feedzy-rss-feeds-admin-abstract.php:559
|
44 |
msgid "at"
|
45 |
msgstr ""
|
46 |
|
readme.txt
CHANGED
@@ -99,6 +99,7 @@ By activating this plugin, your cover picture will be inserted into your RSS fee
|
|
99 |
* feedzy_default_error
|
100 |
* feedzy_item_filter
|
101 |
* feedzy_item_url_filter
|
|
|
102 |
* shortcode_atts_feedzy_default
|
103 |
`
|
104 |
This plugin is maintained and supported by Themeisle, check out some of the other <a href="http://themeisle.com/wordpress-plugins/" rel="nofollow">WordPress plugins</a> and <a href="http://themeisle.com/wordpress-themes/free/" rel="nofollow">free themes</a> we've developed.
|
@@ -174,6 +175,9 @@ http://docs.themeisle.com/article/543-how-to-remove-the-end-hellip
|
|
174 |
= How to display items in a random order =
|
175 |
http://docs.themeisle.com/article/550-how-to-display-items-in-a-random-order
|
176 |
|
|
|
|
|
|
|
177 |
== Screenshots ==
|
178 |
|
179 |
1. Simple example
|
@@ -184,6 +188,12 @@ http://docs.themeisle.com/article/550-how-to-display-items-in-a-random-order
|
|
184 |
|
185 |
== Changelog ==
|
186 |
|
|
|
|
|
|
|
|
|
|
|
|
|
187 |
= 3.0.5 - 06/01/2017 =
|
188 |
* Fixed issue with google news feed
|
189 |
|
99 |
* feedzy_default_error
|
100 |
* feedzy_item_filter
|
101 |
* feedzy_item_url_filter
|
102 |
+
* feedzy_feed_timestamp
|
103 |
* shortcode_atts_feedzy_default
|
104 |
`
|
105 |
This plugin is maintained and supported by Themeisle, check out some of the other <a href="http://themeisle.com/wordpress-plugins/" rel="nofollow">WordPress plugins</a> and <a href="http://themeisle.com/wordpress-themes/free/" rel="nofollow">free themes</a> we've developed.
|
175 |
= How to display items in a random order =
|
176 |
http://docs.themeisle.com/article/550-how-to-display-items-in-a-random-order
|
177 |
|
178 |
+
= How to display RSS feed time and date in local time =
|
179 |
+
http://docs.themeisle.com/article/567-how-to-display-rss-feed-time-and-date-in-local-time
|
180 |
+
|
181 |
== Screenshots ==
|
182 |
|
183 |
1. Simple example
|
188 |
|
189 |
== Changelog ==
|
190 |
|
191 |
+
= 3.0.6 - 27/01/2017 =
|
192 |
+
* Added feedzy_feed_timestamp filter.
|
193 |
+
* Fixed issue with edge cases feed urls.
|
194 |
+
* Fixed error when using [] on string vars.
|
195 |
+
|
196 |
+
|
197 |
= 3.0.5 - 06/01/2017 =
|
198 |
* Fixed issue with google news feed
|
199 |
|