Skip to content

Commit 91433e7

Browse files
authored
Merge pull request #31 from Codeinwp/development
Fixed issue with google news feeds
2 parents 9dba371 + 4bb64a0 commit 91433e7

File tree

9 files changed

+57
-54
lines changed

9 files changed

+57
-54
lines changed

css/feedzy-rss-feeds.css

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* feedzy-rss-feeds.css
33
* Feedzy RSS Feed
44
* Copyright: (c) 2016 Themeisle, themeisle.com
5-
* Version: 3.0.4
5+
* Version: 3.0.5
66
* Plugin Name: FEEDZY RSS Feeds
77
* Plugin URI: http://themeisle.com/plugins/feedzy-rss-feeds/
88
* Author: Themeisle
@@ -346,9 +346,10 @@ i.mce-i-feedzy-icon {
346346
}
347347

348348
/* Columns */
349-
.feedzy-rss .feedzy-rss-col-1{
349+
.feedzy-rss .feedzy-rss-col-1 {
350350
width: 96%;
351351
}
352+
352353
/* SCHIMBAT DIN ID in CLASA */
353354
.feedzy-rss .feedzy-rss-col-2,
354355
.feedzy-rss .feedzy-rss-col-3,

feedzy-rss-feed.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* Plugin Name: Feedzy RSS Feeds Lite
1616
* Plugin URI: https://themeisle.com/plugins/feedzy-rss-feeds-lite/
1717
* Description: This is a short description of what the plugin does. It's displayed in the WordPress admin area.
18-
* Version: 3.0.4
18+
* Version: 3.0.5
1919
* Author: Themeisle
2020
* Author URI: http://themeisle.com
2121
* License: GPL-2.0+

grunt/version.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ module.exports = {
2727
},
2828
class: {
2929
options: {
30-
prefix: '\\$this->version\.*\\s=\.*\\s\''
30+
prefix: '\\.*version\.*\\s=\.*\\s\''
3131
},
3232
src: [
3333
'includes/feedzy-rss-feeds.php',

includes/abstract/feedzy-rss-feeds-admin-abstract.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -698,7 +698,8 @@ public function feedzy_rss( $atts, $content = '' ) {
698698
// TODO report error when is an error loading the feed
699699
if ( is_wp_error( $feed ) ) { return '';
700700
}
701-
701+
$feed->set_sanitize_class( 'SimplePie_Sanitize' );
702+
$feed->sanitize = new SimplePie_Sanitize();
702703
$feed -> enable_cache( true );
703704
$feed -> enable_order_by_date( true );
704705
$feed -> set_cache_class( 'WP_Feed_Cache' );

includes/admin/feedzy-wp-widget.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -233,10 +233,8 @@ public function widget( $args, $instance ) {
233233
'keywords_title' => $instance['keywords_title'],
234234
);
235235
$feedzy_widget_shortcode_attributes = apply_filters( 'feedzy_widget_shortcode_attributes_filter', $feedzy_widget_shortcode_attributes, $args, $instance );
236-
// Call the shortcode function
237-
$plugin_admin = new Feedzy_Rss_Feeds_Admin( Feedzy_Rss_Feeds::get_plugin_name(), Feedzy_Rss_Feeds::get_version() );
238236

239-
echo $plugin_admin->feedzy_rss( $feedzy_widget_shortcode_attributes );
237+
echo feedzy_rss( $feedzy_widget_shortcode_attributes );
240238
echo $args['after_widget'];
241239

242240
}

includes/feedzy-rss-feeds.php

Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,20 @@ class Feedzy_Rss_Feeds {
7878
*/
7979
protected $admin;
8080

81+
/**
82+
* Init the main singleton instance class.
83+
*
84+
* @return Feedzy_Rss_Feeds Return the instance class
85+
*/
86+
public static function instance() {
87+
if ( ! isset( self::$instance ) && ! ( self::$instance instanceof Feedzy_Rss_Feeds ) ) {
88+
self::$instance = new Feedzy_Rss_Feeds;
89+
self::$instance->init();
90+
}
91+
92+
return self::$instance;
93+
}
94+
8195
/**
8296
* Define the core functionality of the plugin.
8397
*
@@ -90,26 +104,13 @@ class Feedzy_Rss_Feeds {
90104
*/
91105
public function init() {
92106
self::$plugin_name = 'feedzy-rss-feeds';
93-
self::$version = '3.0.3';
107+
self::$version = '3.0.5';
94108
self::$instance->load_dependencies();
95109
self::$instance->set_locale();
96110
self::$instance->define_admin_hooks();
97111

98112
}
99113

100-
/**
101-
* Init the main singleton instance class.
102-
*
103-
* @return Feedzy_Rss_Feeds Return the instance class
104-
*/
105-
public static function instance() {
106-
if ( ! isset( self::$instance ) && ! ( self::$instance instanceof Feedzy_Rss_Feeds ) ) {
107-
self::$instance = new Feedzy_Rss_Feeds;
108-
self::$instance->init();
109-
}
110-
111-
return self::$instance;
112-
}
113114
/**
114115
* Load the required dependencies for this plugin.
115116
*
@@ -127,12 +128,34 @@ public static function instance() {
127128
* @access private
128129
*/
129130
private function load_dependencies() {
130-
131131
include_once FEEDZY_ABSPATH . '/includes/feedzy-rss-feeds-feed-tweaks.php';
132-
self::$instance->loader = new Feedzy_Rss_Feeds_Loader();
132+
self::$instance->loader = new Feedzy_Rss_Feeds_Loader();
133133
self::$instance->upgrader = new Feedzy_Rss_Feeds_Upgrader();
134-
self::$instance->admin = new Feedzy_Rss_Feeds_Admin( self::$instance->get_plugin_name(), self::$instance->get_version() );
134+
self::$instance->admin = new Feedzy_Rss_Feeds_Admin( self::$instance->get_plugin_name(), self::$instance->get_version() );
135+
136+
}
137+
138+
/**
139+
* The name of the plugin used to uniquely identify it within the context of
140+
* WordPress and to define internationalization functionality.
141+
*
142+
* @since 3.0.0
143+
* @access public
144+
* @return string The name of the plugin.
145+
*/
146+
public static function get_plugin_name() {
147+
return self::$plugin_name;
148+
}
135149

150+
/**
151+
* Retrieve the version number of the plugin.
152+
*
153+
* @since 3.0.0
154+
* @access public
155+
* @return string The version number of the plugin.
156+
*/
157+
public static function get_version() {
158+
return self::$version;
136159
}
137160

138161
/**
@@ -181,29 +204,6 @@ private function define_admin_hooks() {
181204
self::$instance->loader->add_action( 'widgets_init', $plugin_widget, 'registerWidget', 10 );
182205
}
183206

184-
/**
185-
* The name of the plugin used to uniquely identify it within the context of
186-
* WordPress and to define internationalization functionality.
187-
*
188-
* @since 3.0.0
189-
* @access public
190-
* @return string The name of the plugin.
191-
*/
192-
public static function get_plugin_name() {
193-
return self::$plugin_name;
194-
}
195-
196-
/**
197-
* Retrieve the version number of the plugin.
198-
*
199-
* @since 3.0.0
200-
* @access public
201-
* @return string The version number of the plugin.
202-
*/
203-
public static function get_version() {
204-
return self::$version;
205-
}
206-
207207
/**
208208
* Run the loader to execute all of the hooks with WordPress.
209209
*

languages/feedzy-rss-feeds.pot

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
# This file is distributed under the GPL-2.0+.
33
msgid ""
44
msgstr ""
5-
"Project-Id-Version: Feedzy RSS Feeds Lite 3.0.3\n"
5+
"Project-Id-Version: Feedzy RSS Feeds Lite 3.0.4\n"
66
"Report-Msgid-Bugs-To: https://github.com/Codeinwp/feedzy-rss-feeds/issues\n"
7-
"POT-Creation-Date: 2017-01-11 11:14:17+00:00\n"
7+
"POT-Creation-Date: 2017-01-12 11:03:04+00:00\n"
88
"MIME-Version: 1.0\n"
99
"Content-Type: text/plain; charset=utf-8\n"
1010
"Content-Transfer-Encoding: 8bit\n"
@@ -280,15 +280,15 @@ msgstr ""
280280
msgid "Style 2"
281281
msgstr ""
282282

283-
#: includes/admin/feedzy-wp-widget.php:48
283+
#: includes/admin/feedzy-wp-widget.php:40
284284
msgid "Feedzy RSS Feeds"
285285
msgstr ""
286286

287-
#: includes/admin/feedzy-wp-widget.php:92
287+
#: includes/admin/feedzy-wp-widget.php:83
288288
msgid "Widget Title"
289289
msgstr ""
290290

291-
#: includes/admin/feedzy-wp-widget.php:96
291+
#: includes/admin/feedzy-wp-widget.php:87
292292
msgid "Intro text"
293293
msgstr ""
294294

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "feedzy-rss-feeds",
3-
"version": "3.0.4",
3+
"version": "3.0.5",
44
"description": "FEEDZY RSS Feeds is a small and lightweight RSS aggregator plugin",
55
"repository": {
66
"type": "git",

readme.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,9 @@ http://docs.themeisle.com/article/550-how-to-display-items-in-a-random-order
184184

185185
== Changelog ==
186186

187+
= 3.0.5 - 06/01/2017 =
188+
* Fixed issue with google news feed
189+
187190
= 3.0.4 - 06/01/2017 =
188191
* Fixed thumb='auto' behaviour
189192

0 commit comments

Comments
 (0)