Version Description
- 2020-10-30
Download this release
Release Info
| Developer | codeinwp |
| Plugin | |
| Version | 3.5.1 |
| Comparing to | |
| See all releases | |
Code changes from version 3.5.0 to 3.5.1
- CHANGELOG.md +6 -0
- css/feedzy-rss-feeds.css +1 -1
- feedzy-rss-feed.php +1 -1
- includes/abstract/feedzy-rss-feeds-admin-abstract.php +12 -0
- includes/admin/feedzy-rss-feeds-import.php +22 -13
- includes/feedzy-rss-feeds.php +1 -1
- readme.md +7 -0
- readme.txt +7 -0
- themeisle-hash.json +1 -1
- vendor/autoload.php +1 -1
- vendor/autoload_52.php +1 -1
- vendor/composer/autoload_real.php +5 -5
- vendor/composer/autoload_real_52.php +3 -3
CHANGELOG.md
CHANGED
|
@@ -1,4 +1,10 @@
|
|
| 1 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
### v3.5.0 - 2020-10-12
|
| 3 |
**Changes:**
|
| 4 |
* [Feat] Improved interface for adding new imports and for the imports listing page
|
| 1 |
|
| 2 |
+
### v3.5.1 - 2020-10-30
|
| 3 |
+
**Changes:**
|
| 4 |
+
* [Fix] Importing random images with https://source.unsplash.com/random generator link in Feed to Post
|
| 5 |
+
* [Fix] Importing fixed featured image in Feed to Post
|
| 6 |
+
* [Fix] Enclosures that do no specify image extension are not imported even if the type is image/jpeg
|
| 7 |
+
|
| 8 |
### v3.5.0 - 2020-10-12
|
| 9 |
**Changes:**
|
| 10 |
* [Feat] Improved interface for adding new imports and for the imports listing page
|
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.5.
|
| 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.5.1
|
| 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: A small and lightweight RSS aggregator plugin. Fast and very easy to use, it allows you to aggregate multiple RSS feeds into your WordPress site through fully customizable shortcodes & widgets.
|
| 18 |
-
* Version: 3.5.
|
| 19 |
* Author: Themeisle
|
| 20 |
* Author URI: http://themeisle.com
|
| 21 |
* License: GPL-2.0+
|
| 15 |
* Plugin Name: Feedzy RSS Feeds Lite
|
| 16 |
* Plugin URI: https://themeisle.com/plugins/feedzy-rss-feeds-lite/
|
| 17 |
* Description: A small and lightweight RSS aggregator plugin. Fast and very easy to use, it allows you to aggregate multiple RSS feeds into your WordPress site through fully customizable shortcodes & widgets.
|
| 18 |
+
* Version: 3.5.1
|
| 19 |
* Author: Themeisle
|
| 20 |
* Author URI: http://themeisle.com
|
| 21 |
* License: GPL-2.0+
|
includes/abstract/feedzy-rss-feeds-admin-abstract.php
CHANGED
|
@@ -1312,6 +1312,15 @@ abstract class Feedzy_Rss_Feeds_Admin_Abstract {
|
|
| 1312 |
* @return string
|
| 1313 |
*/
|
| 1314 |
public function feedzy_retrieve_image( $item, $sc = null ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1315 |
$the_thumbnail = '';
|
| 1316 |
if ( $enclosures = $item->get_enclosures() ) {
|
| 1317 |
foreach ( (array) $enclosures as $enclosure ) {
|
|
@@ -1336,6 +1345,9 @@ abstract class Feedzy_Rss_Feeds_Admin_Abstract {
|
|
| 1336 |
if ( preg_match( $pattern, $imgsrc, $matches ) ) {
|
| 1337 |
$the_thumbnail = $thumbnail;
|
| 1338 |
break;
|
|
|
|
|
|
|
|
|
|
| 1339 |
}
|
| 1340 |
}
|
| 1341 |
// Break loop if thumbnail is found
|
| 1312 |
* @return string
|
| 1313 |
*/
|
| 1314 |
public function feedzy_retrieve_image( $item, $sc = null ) {
|
| 1315 |
+
$image_mime_types = array();
|
| 1316 |
+
foreach ( wp_get_mime_types() as $extn => $mime ) {
|
| 1317 |
+
if ( strpos( $mime, 'image/' ) !== false ) {
|
| 1318 |
+
$image_mime_types[] = $mime;
|
| 1319 |
+
}
|
| 1320 |
+
}
|
| 1321 |
+
|
| 1322 |
+
$image_mime_types = apply_filters( 'feedzy_image_mime_types', $image_mime_types );
|
| 1323 |
+
|
| 1324 |
$the_thumbnail = '';
|
| 1325 |
if ( $enclosures = $item->get_enclosures() ) {
|
| 1326 |
foreach ( (array) $enclosures as $enclosure ) {
|
| 1345 |
if ( preg_match( $pattern, $imgsrc, $matches ) ) {
|
| 1346 |
$the_thumbnail = $thumbnail;
|
| 1347 |
break;
|
| 1348 |
+
} elseif ( in_array( $enclosure->type, $image_mime_types, true ) ) {
|
| 1349 |
+
$the_thumbnail = $thumbnail;
|
| 1350 |
+
break;
|
| 1351 |
}
|
| 1352 |
}
|
| 1353 |
// Break loop if thumbnail is found
|
includes/admin/feedzy-rss-feeds-import.php
CHANGED
|
@@ -438,7 +438,6 @@ class Feedzy_Rss_Feeds_Import {
|
|
| 438 |
// if invalid source has been found, redirect back to edit screen
|
| 439 |
// where errors can be shown
|
| 440 |
$invalid = get_post_meta( $post_id, '__transient_feedzy_invalid_source', true );
|
| 441 |
-
error_log( "redirect_post_location $post_id = " . print_r( $invalid, true ) );
|
| 442 |
if ( empty( $invalid ) ) {
|
| 443 |
return admin_url( 'edit.php?post_type=feedzy_imports' );
|
| 444 |
}
|
|
@@ -1146,12 +1145,6 @@ class Feedzy_Rss_Feeds_Import {
|
|
| 1146 |
continue;
|
| 1147 |
}
|
| 1148 |
|
| 1149 |
-
$import_image = strpos( $import_content, '[#item_image]' ) !== false || strpos( $import_featured_img, '[#item_image]' ) !== false;
|
| 1150 |
-
if ( $import_image && empty( $item['item_img_path'] ) ) {
|
| 1151 |
-
do_action( 'themeisle_log_event', FEEDZY_NAME, sprintf( 'Unable to find an image for item title %s.', $item['item_title'] ), 'warn', __FILE__, __LINE__ );
|
| 1152 |
-
$import_image_errors++;
|
| 1153 |
-
}
|
| 1154 |
-
|
| 1155 |
$author = '';
|
| 1156 |
if ( $item['item_author'] ) {
|
| 1157 |
if ( is_string( $item['item_author'] ) ) {
|
|
@@ -1197,7 +1190,10 @@ class Feedzy_Rss_Feeds_Import {
|
|
| 1197 |
$post_title = apply_filters( 'feedzy_invoke_services', $post_title, 'title', $item['item_title'], $job );
|
| 1198 |
|
| 1199 |
$item_link = '<a href="' . $item['item_url'] . '" target="_blank">' . __( 'Read More', 'feedzy-rss-feeds' ) . '</a>';
|
| 1200 |
-
$image_html = '
|
|
|
|
|
|
|
|
|
|
| 1201 |
$post_content = str_replace(
|
| 1202 |
array(
|
| 1203 |
'[#item_description]',
|
|
@@ -1325,14 +1321,27 @@ class Feedzy_Rss_Feeds_Import {
|
|
| 1325 |
|
| 1326 |
$index++;
|
| 1327 |
|
| 1328 |
-
if (
|
| 1329 |
-
$image_url =
|
| 1330 |
$img_success = true;
|
| 1331 |
-
|
| 1332 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1333 |
} else {
|
| 1334 |
-
$
|
| 1335 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1336 |
if ( ! $img_success ) {
|
| 1337 |
$import_image_errors++;
|
| 1338 |
}
|
| 438 |
// if invalid source has been found, redirect back to edit screen
|
| 439 |
// where errors can be shown
|
| 440 |
$invalid = get_post_meta( $post_id, '__transient_feedzy_invalid_source', true );
|
|
|
|
| 441 |
if ( empty( $invalid ) ) {
|
| 442 |
return admin_url( 'edit.php?post_type=feedzy_imports' );
|
| 443 |
}
|
| 1145 |
continue;
|
| 1146 |
}
|
| 1147 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1148 |
$author = '';
|
| 1149 |
if ( $item['item_author'] ) {
|
| 1150 |
if ( is_string( $item['item_author'] ) ) {
|
| 1190 |
$post_title = apply_filters( 'feedzy_invoke_services', $post_title, 'title', $item['item_title'], $job );
|
| 1191 |
|
| 1192 |
$item_link = '<a href="' . $item['item_url'] . '" target="_blank">' . __( 'Read More', 'feedzy-rss-feeds' ) . '</a>';
|
| 1193 |
+
$image_html = '';
|
| 1194 |
+
if ( ! empty( $item['item_img_path'] ) ) {
|
| 1195 |
+
$image_html = '<img src="' . $item['item_img_path'] . '" title="' . $item['item_title'] . '" />';
|
| 1196 |
+
}
|
| 1197 |
$post_content = str_replace(
|
| 1198 |
array(
|
| 1199 |
'[#item_description]',
|
| 1321 |
|
| 1322 |
$index++;
|
| 1323 |
|
| 1324 |
+
if ( ! empty( $import_featured_img ) ) {
|
| 1325 |
+
$image_url = '';
|
| 1326 |
$img_success = true;
|
| 1327 |
+
|
| 1328 |
+
// image tag
|
| 1329 |
+
if ( strpos( $import_featured_img, '[#item_image]' ) !== false ) {
|
| 1330 |
+
// image exists in item
|
| 1331 |
+
if ( ! empty( $item['item_img_path'] ) ) {
|
| 1332 |
+
$image_url = str_replace( '[#item_image]', $item['item_img_path'], $import_featured_img );
|
| 1333 |
+
} else {
|
| 1334 |
+
$img_success = false;
|
| 1335 |
+
}
|
| 1336 |
} else {
|
| 1337 |
+
$image_url = $import_featured_img;
|
| 1338 |
}
|
| 1339 |
+
|
| 1340 |
+
if ( ! empty( $image_url ) ) {
|
| 1341 |
+
// if import_featured_img is a tag
|
| 1342 |
+
$img_success = $this->generate_featured_image( $image_url, $new_post_id, $item['item_title'], $import_errors, $import_info );
|
| 1343 |
+
}
|
| 1344 |
+
|
| 1345 |
if ( ! $img_success ) {
|
| 1346 |
$import_image_errors++;
|
| 1347 |
}
|
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.5.
|
| 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.5.1';
|
| 108 |
self::$instance->load_dependencies();
|
| 109 |
self::$instance->set_locale();
|
| 110 |
self::$instance->define_admin_hooks();
|
readme.md
CHANGED
|
@@ -461,6 +461,13 @@ You have to check first if your feed is valid. Please test it here: https://vali
|
|
| 461 |
|
| 462 |
|
| 463 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 464 |
### 3.5.0 - 2020-10-12 ###
|
| 465 |
|
| 466 |
* [Feat] Improved interface for adding new imports and for the imports listing page
|
| 461 |
|
| 462 |
|
| 463 |
== Changelog ==
|
| 464 |
+
### 3.5.1 - 2020-10-30 ###
|
| 465 |
+
|
| 466 |
+
* [Fix] Importing random images with https://source.unsplash.com/random generator link in Feed to Post
|
| 467 |
+
* [Fix] Importing fixed featured image in Feed to Post
|
| 468 |
+
* [Fix] Enclosures that do no specify image extension are not imported even if the type is image/jpeg
|
| 469 |
+
|
| 470 |
+
|
| 471 |
### 3.5.0 - 2020-10-12 ###
|
| 472 |
|
| 473 |
* [Feat] Improved interface for adding new imports and for the imports listing page
|
readme.txt
CHANGED
|
@@ -461,6 +461,13 @@ You have to check first if your feed is valid. Please test it here: https://vali
|
|
| 461 |
|
| 462 |
|
| 463 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 464 |
= 3.5.0 - 2020-10-12 =
|
| 465 |
|
| 466 |
* [Feat] Improved interface for adding new imports and for the imports listing page
|
| 461 |
|
| 462 |
|
| 463 |
== Changelog ==
|
| 464 |
+
= 3.5.1 - 2020-10-30 =
|
| 465 |
+
|
| 466 |
+
* [Fix] Importing random images with https://source.unsplash.com/random generator link in Feed to Post
|
| 467 |
+
* [Fix] Importing fixed featured image in Feed to Post
|
| 468 |
+
* [Fix] Enclosures that do no specify image extension are not imported even if the type is image/jpeg
|
| 469 |
+
|
| 470 |
+
|
| 471 |
= 3.5.0 - 2020-10-12 =
|
| 472 |
|
| 473 |
* [Feat] Improved interface for adding new imports and for the imports listing page
|
themeisle-hash.json
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
{"feedzy-rss-feed.php":"
|
| 1 |
+
{"feedzy-rss-feed.php":"e893f730727345d6269b9932fd862c85","index.php":"71c0755260138a4b7b2182c3c61179f6","uninstall.php":"cdb21f8648e005cbb9c73481d1750186"}
|
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 ComposerAutoloaderInita8bbe8b2d9dd55695f1245350eb5f93c::getLoader();
|
vendor/autoload_52.php
CHANGED
|
@@ -4,4 +4,4 @@
|
|
| 4 |
|
| 5 |
require_once dirname(__FILE__) . '/composer'.'/autoload_real_52.php';
|
| 6 |
|
| 7 |
-
return
|
| 4 |
|
| 5 |
require_once dirname(__FILE__) . '/composer'.'/autoload_real_52.php';
|
| 6 |
|
| 7 |
+
return ComposerAutoloaderInitde358a322445089daa86875e89b9e4df::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,9 +19,9 @@ class ComposerAutoloaderInit21a3a7dd973af49e9322f7c49b7edf5c
|
|
| 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 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
| 27 |
foreach ($map as $namespace => $path) {
|
|
@@ -42,14 +42,14 @@ class ComposerAutoloaderInit21a3a7dd973af49e9322f7c49b7edf5c
|
|
| 42 |
|
| 43 |
$includeFiles = require __DIR__ . '/autoload_files.php';
|
| 44 |
foreach ($includeFiles as $fileIdentifier => $file) {
|
| 45 |
-
|
| 46 |
}
|
| 47 |
|
| 48 |
return $loader;
|
| 49 |
}
|
| 50 |
}
|
| 51 |
|
| 52 |
-
function
|
| 53 |
{
|
| 54 |
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
| 55 |
require $file;
|
| 2 |
|
| 3 |
// autoload_real.php @generated by Composer
|
| 4 |
|
| 5 |
+
class ComposerAutoloaderInita8bbe8b2d9dd55695f1245350eb5f93c
|
| 6 |
{
|
| 7 |
private static $loader;
|
| 8 |
|
| 19 |
return self::$loader;
|
| 20 |
}
|
| 21 |
|
| 22 |
+
spl_autoload_register(array('ComposerAutoloaderInita8bbe8b2d9dd55695f1245350eb5f93c', 'loadClassLoader'), true, true);
|
| 23 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
| 24 |
+
spl_autoload_unregister(array('ComposerAutoloaderInita8bbe8b2d9dd55695f1245350eb5f93c', 'loadClassLoader'));
|
| 25 |
|
| 26 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
| 27 |
foreach ($map as $namespace => $path) {
|
| 42 |
|
| 43 |
$includeFiles = require __DIR__ . '/autoload_files.php';
|
| 44 |
foreach ($includeFiles as $fileIdentifier => $file) {
|
| 45 |
+
composerRequirea8bbe8b2d9dd55695f1245350eb5f93c($fileIdentifier, $file);
|
| 46 |
}
|
| 47 |
|
| 48 |
return $loader;
|
| 49 |
}
|
| 50 |
}
|
| 51 |
|
| 52 |
+
function composerRequirea8bbe8b2d9dd55695f1245350eb5f93c($fileIdentifier, $file)
|
| 53 |
{
|
| 54 |
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
| 55 |
require $file;
|
vendor/composer/autoload_real_52.php
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 2 |
|
| 3 |
// autoload_real_52.php generated by xrstf/composer-php52
|
| 4 |
|
| 5 |
-
class
|
| 6 |
private static $loader;
|
| 7 |
|
| 8 |
public static function loadClassLoader($class) {
|
|
@@ -19,9 +19,9 @@ class ComposerAutoloaderInit33ada9a75367c67d82882bee194c98e4 {
|
|
| 19 |
return self::$loader;
|
| 20 |
}
|
| 21 |
|
| 22 |
-
spl_autoload_register(array('
|
| 23 |
self::$loader = $loader = new xrstf_Composer52_ClassLoader();
|
| 24 |
-
spl_autoload_unregister(array('
|
| 25 |
|
| 26 |
$vendorDir = dirname(dirname(__FILE__));
|
| 27 |
$baseDir = dirname($vendorDir);
|
| 2 |
|
| 3 |
// autoload_real_52.php generated by xrstf/composer-php52
|
| 4 |
|
| 5 |
+
class ComposerAutoloaderInitde358a322445089daa86875e89b9e4df {
|
| 6 |
private static $loader;
|
| 7 |
|
| 8 |
public static function loadClassLoader($class) {
|
| 19 |
return self::$loader;
|
| 20 |
}
|
| 21 |
|
| 22 |
+
spl_autoload_register(array('ComposerAutoloaderInitde358a322445089daa86875e89b9e4df', 'loadClassLoader'), true /*, true */);
|
| 23 |
self::$loader = $loader = new xrstf_Composer52_ClassLoader();
|
| 24 |
+
spl_autoload_unregister(array('ComposerAutoloaderInitde358a322445089daa86875e89b9e4df', 'loadClassLoader'));
|
| 25 |
|
| 26 |
$vendorDir = dirname(dirname(__FILE__));
|
| 27 |
$baseDir = dirname($vendorDir);
|
