Featured Image From URL - Version 3.0.7

Version Description

  • Bug fix: internal featured images might not being shown in the previous version.
Download this release

Release Info

Developer marceljm
Plugin Icon 128x128 Featured Image From URL
Version 3.0.7
Comparing to
See all releases

Code changes from version 3.0.6 to 3.0.7

featured-image-from-url.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin Name: Featured Image from URL
5
  * Plugin URI: https://fifu.app/
6
  * Description: Use an external image as Featured Image of a post or WooCommerce product. Includes Image Search, Video, Social Tags, SEO, Lazy Load, Gallery, Automation etc.
7
- * Version: 3.0.6
8
  * Author: Marcel Jacques Machado
9
  * Author URI: https://fifu.app/
10
  * WC requires at least: 3.0
4
  * Plugin Name: Featured Image from URL
5
  * Plugin URI: https://fifu.app/
6
  * Description: Use an external image as Featured Image of a post or WooCommerce product. Includes Image Search, Video, Social Tags, SEO, Lazy Load, Gallery, Automation etc.
7
+ * Version: 3.0.7
8
  * Author: Marcel Jacques Machado
9
  * Author URI: https://fifu.app/
10
  * WC requires at least: 3.0
includes/attachment.php CHANGED
@@ -21,14 +21,8 @@ function fifu_replace_attachment_url($att_url, $att_id) {
21
  else {
22
  $post = get_post($att_id);
23
  if ($post) {
24
- if ($att_url && strpos($att_url, 'http') === 0) {
25
- if ($post->post_parent) {
26
- $url = fifu_main_image_url($post->post_parent);
27
- if ($url)
28
- return $url;
29
- }
30
  return $att_url;
31
- }
32
 
33
  if (!fifu_reject_guid())
34
  return get_post($att_id)->guid;
21
  else {
22
  $post = get_post($att_id);
23
  if ($post) {
24
+ if ($att_url && strpos($att_url, 'http') === 0 && $post->post_author != "77777")
 
 
 
 
 
25
  return $att_url;
 
26
 
27
  if (!fifu_reject_guid())
28
  return get_post($att_id)->guid;
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://donorbox.org/fifu
4
  Tags: featured image, image, featured, url, external, external featured image, featured image from url, url featured image, flickr, s3, picasa, woocommerce, product image, product gallery, product, gallery, column, list, page, post, all, content, custom, type, custom post type, category, video, external video, youtube, vimeo, featured video, hover, effects, hover effects, wp all import, css, style, slider, thumbnail, social, network, auto, publish, hide, first image, content, lightbox, size, grid, auto post thumbnail, link, uri, affiliate, wp, rest, api, wp rest api, lazy, load, google, drive, validation, jetpack, visual composer, play, pause, crop, resize, zoom, enable, disable, default, automatic, auto set, cloudinary, schedule, event, cron, seo, variable, tumblr, variation, product variation, shortcode, facebook, instagram, imgur, publitio, 9gag, wcfm, add-on, scraper, 特色圖片, 图片, 网址, 外部, unsplash, keyword, random, acf, rss, media, tag
5
  Requires at least: 4.0
6
  Tested up to: 5.4
7
- Stable tag: 3.0.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -166,6 +166,9 @@ Features:
166
 
167
  == Changelog ==
168
 
 
 
 
169
  = 3.0.6 =
170
  * New feature (Premium): Media RSS Tags; Improvement (Premium): FIFU add-on for WP All Import has a List Delimiter field now; Bug fix: conflict with external images from WordPress sites; Bug fix: og:image social tag was not being added when Yoast SEO plugin is installed.
171
 
@@ -754,6 +757,9 @@ was removed. To finish, a Premium version is now been presented.
754
 
755
  == Upgrade Notice ==
756
 
 
 
 
757
  = 3.0.6 =
758
  * New feature (Premium): Media RSS Tags; Improvement (Premium): FIFU add-on for WP All Import has a List Delimiter field now; Bug fix: conflict with external images from WordPress sites; Bug fix: og:image social tag was not being added when Yoast SEO plugin is installed.
759
 
4
  Tags: featured image, image, featured, url, external, external featured image, featured image from url, url featured image, flickr, s3, picasa, woocommerce, product image, product gallery, product, gallery, column, list, page, post, all, content, custom, type, custom post type, category, video, external video, youtube, vimeo, featured video, hover, effects, hover effects, wp all import, css, style, slider, thumbnail, social, network, auto, publish, hide, first image, content, lightbox, size, grid, auto post thumbnail, link, uri, affiliate, wp, rest, api, wp rest api, lazy, load, google, drive, validation, jetpack, visual composer, play, pause, crop, resize, zoom, enable, disable, default, automatic, auto set, cloudinary, schedule, event, cron, seo, variable, tumblr, variation, product variation, shortcode, facebook, instagram, imgur, publitio, 9gag, wcfm, add-on, scraper, 特色圖片, 图片, 网址, 外部, unsplash, keyword, random, acf, rss, media, tag
5
  Requires at least: 4.0
6
  Tested up to: 5.4
7
+ Stable tag: 3.0.7
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
166
 
167
  == Changelog ==
168
 
169
+ = 3.0.7 =
170
+ * Bug fix: internal featured images might not being shown in the previous version.
171
+
172
  = 3.0.6 =
173
  * New feature (Premium): Media RSS Tags; Improvement (Premium): FIFU add-on for WP All Import has a List Delimiter field now; Bug fix: conflict with external images from WordPress sites; Bug fix: og:image social tag was not being added when Yoast SEO plugin is installed.
174
 
757
 
758
  == Upgrade Notice ==
759
 
760
+ = 3.0.7 =
761
+ * Bug fix: internal featured images might not being shown in the previous version.
762
+
763
  = 3.0.6 =
764
  * New feature (Premium): Media RSS Tags; Improvement (Premium): FIFU add-on for WP All Import has a List Delimiter field now; Bug fix: conflict with external images from WordPress sites; Bug fix: og:image social tag was not being added when Yoast SEO plugin is installed.
765