FEEDZY RSS Feeds Lite - Version 3.7.5

Version Description

Download this release

Release Info

Developer themeisle
Plugin Icon 128x128 FEEDZY RSS Feeds Lite
Version 3.7.5
Comparing to
See all releases

Code changes from version 3.7.4 to 3.7.5

CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
 
 
 
 
 
 
 
1
  ##### [Version 3.7.4](https://github.com/Codeinwp/feedzy-rss-feeds/compare/v3.7.3...v3.7.4) (2021-09-01)
2
 
3
  * Fix regression issue with Elementor widget not showing with lower WP versions.
1
+ ##### [Version 3.7.5](https://github.com/Codeinwp/feedzy-rss-feeds/compare/v3.7.4...v3.7.5) (2021-09-06)
2
+
3
+ #### Fixes
4
+ - Fix broken image issues with certain feeds
5
+ - Adds new line character support for import content
6
+ - Fix import on custom values when full content is used
7
+
8
  ##### [Version 3.7.4](https://github.com/Codeinwp/feedzy-rss-feeds/compare/v3.7.3...v3.7.4) (2021-09-01)
9
 
10
  * Fix regression issue with Elementor widget not showing with lower WP versions.
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.7.4
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.7.5
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.7.4
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.7.5
19
  * Author: Themeisle
20
  * Author URI: http://themeisle.com
21
  * License: GPL-2.0+
includes/abstract/feedzy-rss-feeds-admin-abstract.php CHANGED
@@ -1589,7 +1589,7 @@ abstract class Feedzy_Rss_Feeds_Admin_Abstract {
1589
  * @return string
1590
  */
1591
  public function feedzy_scrape_image( $string, $link = '' ) {
1592
- $pattern = '/src=[\'"](.*?:\/\/.*\.(?:jpg|JPG|jpeg|JPEG|jpe|JPE|gif|GIF|png|PNG)+)[\'" >]/';
1593
  $match = $link;
1594
  preg_match( $pattern, $string, $link );
1595
  if ( ! empty( $link ) && isset( $link[1] ) ) {
1589
  * @return string
1590
  */
1591
  public function feedzy_scrape_image( $string, $link = '' ) {
1592
+ $pattern = '/< *img[^>]*src *= *["\']?([^"\']*)/';
1593
  $match = $link;
1594
  preg_match( $pattern, $string, $link );
1595
  if ( ! empty( $link ) && isset( $link[1] ) ) {
includes/admin/feedzy-rss-feeds-import.php CHANGED
@@ -1123,6 +1123,10 @@ class Feedzy_Rss_Feeds_Import {
1123
  $import_remove_duplicates = get_post_meta( $job->ID, 'import_remove_duplicates', true );
1124
  $import_selected_language = get_post_meta( $job->ID, 'language', true );
1125
  $max = $import_feed_limit;
 
 
 
 
1126
  if ( metadata_exists( $import_post_type, $job->ID, 'import_post_status' ) ) {
1127
  $import_post_status = get_post_meta( $job->ID, 'import_post_status', true );
1128
  } else {
@@ -1201,8 +1205,13 @@ class Feedzy_Rss_Feeds_Import {
1201
 
1202
  // the array that captures additional information about the import.
1203
  $import_info = array();
1204
-
1205
  $results = $this->get_job_feed( $options, $import_content, true );
 
 
 
 
 
 
1206
  if ( is_wp_error( $results ) ) {
1207
  $import_errors[] = $results->get_error_message();
1208
  update_post_meta( $job->ID, 'import_errors', $import_errors );
@@ -1294,7 +1303,7 @@ class Feedzy_Rss_Feeds_Import {
1294
  );
1295
 
1296
  if ( $this->feedzy_is_business() ) {
1297
- $post_title = apply_filters( 'feedzy_parse_custom_tags', $post_title, $results['feed'], $item['item_index'] );
1298
  }
1299
 
1300
  $post_title = apply_filters( 'feedzy_invoke_services', $post_title, 'title', $item['item_title'], $job );
@@ -1351,7 +1360,7 @@ class Feedzy_Rss_Feeds_Import {
1351
  }
1352
 
1353
  if ( $this->feedzy_is_business() ) {
1354
- $post_content = apply_filters( 'feedzy_parse_custom_tags', $post_content, $results['feed'], $item['item_index'] );
1355
  }
1356
 
1357
  $post_content = apply_filters( 'feedzy_invoke_services', $post_content, 'content', $item['item_description'], $job );
@@ -1484,7 +1493,7 @@ class Feedzy_Rss_Feeds_Import {
1484
  }
1485
  }
1486
 
1487
- do_action( 'feedzy_import_extra', $job, $results, $new_post_id, $index, $item['item_index'], $import_errors, $import_info );
1488
 
1489
  if ( ! empty( $import_featured_img ) && 'attachment' !== $import_post_type ) {
1490
  $image_url = '';
@@ -1500,7 +1509,7 @@ class Feedzy_Rss_Feeds_Import {
1500
  }
1501
  } elseif ( strpos( $import_featured_img, '[#item_custom' ) !== false ) {
1502
  // custom image tag
1503
- $value = apply_filters( 'feedzy_parse_custom_tags', $import_featured_img, $results['feed'], $index );
1504
  if ( ! empty( $value ) && strpos( $value, '[#item_custom' ) === false ) {
1505
  $image_url = $value;
1506
  } else {
1123
  $import_remove_duplicates = get_post_meta( $job->ID, 'import_remove_duplicates', true );
1124
  $import_selected_language = get_post_meta( $job->ID, 'language', true );
1125
  $max = $import_feed_limit;
1126
+ // Used as a new line character in import content.
1127
+ $import_content = str_replace( PHP_EOL, "\r\n", $import_content );
1128
+ $import_content = trim( $import_content );
1129
+
1130
  if ( metadata_exists( $import_post_type, $job->ID, 'import_post_status' ) ) {
1131
  $import_post_status = get_post_meta( $job->ID, 'import_post_status', true );
1132
  } else {
1205
 
1206
  // the array that captures additional information about the import.
1207
  $import_info = array();
 
1208
  $results = $this->get_job_feed( $options, $import_content, true );
1209
+
1210
+ $xml_results = '';
1211
+ if ( '[#item_full_content]' === $import_content ) {
1212
+ $xml_results = $this->get_job_feed( $options, '[#item_content]', true );
1213
+ }
1214
+
1215
  if ( is_wp_error( $results ) ) {
1216
  $import_errors[] = $results->get_error_message();
1217
  update_post_meta( $job->ID, 'import_errors', $import_errors );
1303
  );
1304
 
1305
  if ( $this->feedzy_is_business() ) {
1306
+ $post_title = apply_filters( 'feedzy_parse_custom_tags', $post_title, ! empty( $xml_results ) ? $xml_results['feed'] : $results['feed'], $item['item_index'] );
1307
  }
1308
 
1309
  $post_title = apply_filters( 'feedzy_invoke_services', $post_title, 'title', $item['item_title'], $job );
1360
  }
1361
 
1362
  if ( $this->feedzy_is_business() ) {
1363
+ $post_content = apply_filters( 'feedzy_parse_custom_tags', $post_content, ! empty( $xml_results ) ? $xml_results['feed'] : $results['feed'], $item['item_index'] );
1364
  }
1365
 
1366
  $post_content = apply_filters( 'feedzy_invoke_services', $post_content, 'content', $item['item_description'], $job );
1493
  }
1494
  }
1495
 
1496
+ do_action( 'feedzy_import_extra', $job, ! empty( $xml_results ) ? $xml_results : $results, $new_post_id, $index, $item['item_index'], $import_errors, $import_info );
1497
 
1498
  if ( ! empty( $import_featured_img ) && 'attachment' !== $import_post_type ) {
1499
  $image_url = '';
1509
  }
1510
  } elseif ( strpos( $import_featured_img, '[#item_custom' ) !== false ) {
1511
  // custom image tag
1512
+ $value = apply_filters( 'feedzy_parse_custom_tags', $import_featured_img, ! empty( $xml_results ) ? $xml_results['feed'] : $results['feed'], $index );
1513
  if ( ! empty( $value ) && strpos( $value, '[#item_custom' ) === false ) {
1514
  $image_url = $value;
1515
  } else {
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.7.4';
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.7.5';
108
  self::$instance->load_dependencies();
109
  self::$instance->set_locale();
110
  self::$instance->define_admin_hooks();
readme.txt CHANGED
@@ -462,6 +462,16 @@ You have to check first if your feed is valid. Please test it here: https://vali
462
 
463
  == Changelog ==
464
 
 
 
 
 
 
 
 
 
 
 
465
  ##### [Version 3.7.4](https://github.com/Codeinwp/feedzy-rss-feeds/compare/v3.7.3...v3.7.4) (2021-09-01)
466
 
467
  * Fix regression issue with Elementor widget not showing with lower WP versions.
462
 
463
  == Changelog ==
464
 
465
+ ##### [Version 3.7.5](https://github.com/Codeinwp/feedzy-rss-feeds/compare/v3.7.4...v3.7.5) (2021-09-06)
466
+
467
+ #### Fixes
468
+ - Fix broken image issues with certain feeds
469
+ - Adds new line character support for import content
470
+ - Fix import on custom values when full content is used
471
+
472
+
473
+
474
+
475
  ##### [Version 3.7.4](https://github.com/Codeinwp/feedzy-rss-feeds/compare/v3.7.3...v3.7.4) (2021-09-01)
476
 
477
  * Fix regression issue with Elementor widget not showing with lower WP versions.
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInit6a7a2643545dadd86cad58cb132d6983::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInitc625b7b8e5257a95ea1e627c2f09f062::getLoader();
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInit6a7a2643545dadd86cad58cb132d6983
6
  {
7
  private static $loader;
8
 
@@ -22,15 +22,15 @@ class ComposerAutoloaderInit6a7a2643545dadd86cad58cb132d6983
22
  return self::$loader;
23
  }
24
 
25
- spl_autoload_register(array('ComposerAutoloaderInit6a7a2643545dadd86cad58cb132d6983', 'loadClassLoader'), true, true);
26
  self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
27
- spl_autoload_unregister(array('ComposerAutoloaderInit6a7a2643545dadd86cad58cb132d6983', 'loadClassLoader'));
28
 
29
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
30
  if ($useStaticLoader) {
31
  require __DIR__ . '/autoload_static.php';
32
 
33
- call_user_func(\Composer\Autoload\ComposerStaticInit6a7a2643545dadd86cad58cb132d6983::getInitializer($loader));
34
  } else {
35
  $map = require __DIR__ . '/autoload_namespaces.php';
36
  foreach ($map as $namespace => $path) {
@@ -51,19 +51,19 @@ class ComposerAutoloaderInit6a7a2643545dadd86cad58cb132d6983
51
  $loader->register(true);
52
 
53
  if ($useStaticLoader) {
54
- $includeFiles = Composer\Autoload\ComposerStaticInit6a7a2643545dadd86cad58cb132d6983::$files;
55
  } else {
56
  $includeFiles = require __DIR__ . '/autoload_files.php';
57
  }
58
  foreach ($includeFiles as $fileIdentifier => $file) {
59
- composerRequire6a7a2643545dadd86cad58cb132d6983($fileIdentifier, $file);
60
  }
61
 
62
  return $loader;
63
  }
64
  }
65
 
66
- function composerRequire6a7a2643545dadd86cad58cb132d6983($fileIdentifier, $file)
67
  {
68
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
69
  require $file;
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInitc625b7b8e5257a95ea1e627c2f09f062
6
  {
7
  private static $loader;
8
 
22
  return self::$loader;
23
  }
24
 
25
+ spl_autoload_register(array('ComposerAutoloaderInitc625b7b8e5257a95ea1e627c2f09f062', 'loadClassLoader'), true, true);
26
  self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
27
+ spl_autoload_unregister(array('ComposerAutoloaderInitc625b7b8e5257a95ea1e627c2f09f062', 'loadClassLoader'));
28
 
29
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
30
  if ($useStaticLoader) {
31
  require __DIR__ . '/autoload_static.php';
32
 
33
+ call_user_func(\Composer\Autoload\ComposerStaticInitc625b7b8e5257a95ea1e627c2f09f062::getInitializer($loader));
34
  } else {
35
  $map = require __DIR__ . '/autoload_namespaces.php';
36
  foreach ($map as $namespace => $path) {
51
  $loader->register(true);
52
 
53
  if ($useStaticLoader) {
54
+ $includeFiles = Composer\Autoload\ComposerStaticInitc625b7b8e5257a95ea1e627c2f09f062::$files;
55
  } else {
56
  $includeFiles = require __DIR__ . '/autoload_files.php';
57
  }
58
  foreach ($includeFiles as $fileIdentifier => $file) {
59
+ composerRequirec625b7b8e5257a95ea1e627c2f09f062($fileIdentifier, $file);
60
  }
61
 
62
  return $loader;
63
  }
64
  }
65
 
66
+ function composerRequirec625b7b8e5257a95ea1e627c2f09f062($fileIdentifier, $file)
67
  {
68
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
69
  require $file;
vendor/composer/autoload_static.php CHANGED
@@ -4,7 +4,7 @@
4
 
5
  namespace Composer\Autoload;
6
 
7
- class ComposerStaticInit6a7a2643545dadd86cad58cb132d6983
8
  {
9
  public static $files = array (
10
  '3df8ee254224091c21b9aebb792d2f8b' => __DIR__ . '/..' . '/codeinwp/themeisle-sdk/load.php',
@@ -17,7 +17,7 @@ class ComposerStaticInit6a7a2643545dadd86cad58cb132d6983
17
  public static function getInitializer(ClassLoader $loader)
18
  {
19
  return \Closure::bind(function () use ($loader) {
20
- $loader->classMap = ComposerStaticInit6a7a2643545dadd86cad58cb132d6983::$classMap;
21
 
22
  }, null, ClassLoader::class);
23
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInitc625b7b8e5257a95ea1e627c2f09f062
8
  {
9
  public static $files = array (
10
  '3df8ee254224091c21b9aebb792d2f8b' => __DIR__ . '/..' . '/codeinwp/themeisle-sdk/load.php',
17
  public static function getInitializer(ClassLoader $loader)
18
  {
19
  return \Closure::bind(function () use ($loader) {
20
+ $loader->classMap = ComposerStaticInitc625b7b8e5257a95ea1e627c2f09f062::$classMap;
21
 
22
  }, null, ClassLoader::class);
23
  }
vendor/composer/installed.php CHANGED
@@ -1,22 +1,22 @@
1
  <?php return array(
2
  'root' => array(
3
- 'pretty_version' => 'v3.7.4',
4
- 'version' => '3.7.4.0',
5
  'type' => 'wordpress-plugin',
6
  'install_path' => __DIR__ . '/../../',
7
  'aliases' => array(),
8
- 'reference' => '482c688074a6618d139566ce8c48dd473294365e',
9
  'name' => 'codeinwp/feedzy-rss-feeds',
10
  'dev' => false,
11
  ),
12
  'versions' => array(
13
  'codeinwp/feedzy-rss-feeds' => array(
14
- 'pretty_version' => 'v3.7.4',
15
- 'version' => '3.7.4.0',
16
  'type' => 'wordpress-plugin',
17
  'install_path' => __DIR__ . '/../../',
18
  'aliases' => array(),
19
- 'reference' => '482c688074a6618d139566ce8c48dd473294365e',
20
  'dev_requirement' => false,
21
  ),
22
  'codeinwp/themeisle-sdk' => array(
1
  <?php return array(
2
  'root' => array(
3
+ 'pretty_version' => 'v3.7.5',
4
+ 'version' => '3.7.5.0',
5
  'type' => 'wordpress-plugin',
6
  'install_path' => __DIR__ . '/../../',
7
  'aliases' => array(),
8
+ 'reference' => '423d3f0823ed27d67cc0123c10ec70f5dca227e7',
9
  'name' => 'codeinwp/feedzy-rss-feeds',
10
  'dev' => false,
11
  ),
12
  'versions' => array(
13
  'codeinwp/feedzy-rss-feeds' => array(
14
+ 'pretty_version' => 'v3.7.5',
15
+ 'version' => '3.7.5.0',
16
  'type' => 'wordpress-plugin',
17
  'install_path' => __DIR__ . '/../../',
18
  'aliases' => array(),
19
+ 'reference' => '423d3f0823ed27d67cc0123c10ec70f5dca227e7',
20
  'dev_requirement' => false,
21
  ),
22
  'codeinwp/themeisle-sdk' => array(