Version Description
- Bug fix: internal images were not being shown when used into Featured Image from URL field.
Download this release
Release Info
Developer | marceljm |
Plugin | Featured Image From URL |
Version | 2.9.2 |
Comparing to | |
See all releases |
Code changes from version 2.9.1 to 2.9.2
- admin/html/menu.html +15 -0
- featured-image-from-url.php +1 -1
- includes/attachment.php +7 -1
- readme.txt +7 -1
admin/html/menu.html
CHANGED
@@ -2759,6 +2759,21 @@
|
|
2759 |
From September 2019, always you guys report an issue between FIFU and another plugin or theme, the solution will be posted here.
|
2760 |
</div>
|
2761 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2762 |
<div class="box">
|
2763 |
<table>
|
2764 |
<tr>
|
2759 |
From September 2019, always you guys report an issue between FIFU and another plugin or theme, the solution will be posted here.
|
2760 |
</div>
|
2761 |
</div>
|
2762 |
+
<div class="box">
|
2763 |
+
<table>
|
2764 |
+
<tr>
|
2765 |
+
<td style="border-bottom:none">2020-02-26</td>
|
2766 |
+
<td style="border-bottom:none"><h3> Bimber</h3></td>
|
2767 |
+
<td style="border-bottom:none">theme</td>
|
2768 |
+
</tr>
|
2769 |
+
</table>
|
2770 |
+
<div class="greybox" style="position: relative; top: -10px">
|
2771 |
+
External images are not being shown:<br>
|
2772 |
+
1) access "Appearance > Bimber > Customize > Additional CSS";<br>
|
2773 |
+
2) add ".g1-frame-inner{height:auto}";<br>
|
2774 |
+
3) publish.<br>
|
2775 |
+
</div>
|
2776 |
+
</div>
|
2777 |
<div class="box">
|
2778 |
<table>
|
2779 |
<tr>
|
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 your post/page/custom post type (WooCommerce). Includes Auto Set (External Post), Product Gallery, Social Tags and more.
|
7 |
-
* Version: 2.9.
|
8 |
* Author: Marcel Jacques Machado
|
9 |
* Author URI: https://www.linkedin.com/in/marceljm/
|
10 |
*/
|
4 |
* Plugin Name: Featured Image from URL
|
5 |
* Plugin URI: https://fifu.app/
|
6 |
* Description: Use an external image as Featured Image of your post/page/custom post type (WooCommerce). Includes Auto Set (External Post), Product Gallery, Social Tags and more.
|
7 |
+
* Version: 2.9.2
|
8 |
* Author: Marcel Jacques Machado
|
9 |
* Author URI: https://www.linkedin.com/in/marceljm/
|
10 |
*/
|
includes/attachment.php
CHANGED
@@ -50,14 +50,20 @@ add_filter('posts_where', function ( $where, \WP_Query $q ) {
|
|
50 |
add_filter('wp_get_attachment_image_src', 'fifu_replace_attachment_image_src', 10, 3);
|
51 |
|
52 |
function fifu_replace_attachment_image_src($image, $att_id, $size) {
|
53 |
-
if (!$image
|
54 |
return $image;
|
55 |
|
|
|
|
|
|
|
56 |
if (!$att_id)
|
57 |
return $image;
|
58 |
|
59 |
$post = get_post($att_id);
|
60 |
|
|
|
|
|
|
|
61 |
if (fifu_should_hide())
|
62 |
return null;
|
63 |
$image_size = fifu_get_image_size($size);
|
50 |
add_filter('wp_get_attachment_image_src', 'fifu_replace_attachment_image_src', 10, 3);
|
51 |
|
52 |
function fifu_replace_attachment_image_src($image, $att_id, $size) {
|
53 |
+
if (!$image)
|
54 |
return $image;
|
55 |
|
56 |
+
if (strpos($image[0], ';http') !== false)
|
57 |
+
$image[0] = 'http' . explode(";http", $image[0])[1];
|
58 |
+
|
59 |
if (!$att_id)
|
60 |
return $image;
|
61 |
|
62 |
$post = get_post($att_id);
|
63 |
|
64 |
+
if (fifu_has_internal_image_path($image[0]) && $post->post_author != "77777")
|
65 |
+
return $image;
|
66 |
+
|
67 |
if (fifu_should_hide())
|
68 |
return null;
|
69 |
$image_size = fifu_get_image_size($size);
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://donorbox.org/fifu
|
|
4 |
Tags: featured image, external featured image, featured image from url, url featured image, featured, image, external, url, 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, sirv, 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, instagram, 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, 9gag, wcfm, add-on, scraper
|
5 |
Requires at least: 4.0
|
6 |
Tested up to: 5.4
|
7 |
-
Stable tag: 2.9.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -158,6 +158,9 @@ Features:
|
|
158 |
|
159 |
== Changelog ==
|
160 |
|
|
|
|
|
|
|
161 |
= 2.9.1 =
|
162 |
* Improvement: URL from Post Content feature can work with the nth image now; Improvement: Hide Featured Media feature can work with Custom Post Types now; Bug fix: image width was being limited to 1000px; Bug fix: conflict with internal images.
|
163 |
|
@@ -701,6 +704,9 @@ was removed. To finish, a Premium version is now been presented.
|
|
701 |
|
702 |
== Upgrade Notice ==
|
703 |
|
|
|
|
|
|
|
704 |
= 2.9.1 =
|
705 |
* Improvement: URL from Post Content feature can work with the nth image now; Improvement: Hide Featured Media feature can work with Custom Post Types now; Bug fix: image width was being limited to 1000px; Bug fix: conflict with internal images.
|
706 |
|
4 |
Tags: featured image, external featured image, featured image from url, url featured image, featured, image, external, url, 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, sirv, 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, instagram, 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, 9gag, wcfm, add-on, scraper
|
5 |
Requires at least: 4.0
|
6 |
Tested up to: 5.4
|
7 |
+
Stable tag: 2.9.2
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
158 |
|
159 |
== Changelog ==
|
160 |
|
161 |
+
= 2.9.2 =
|
162 |
+
* Bug fix: internal images were not being shown when used into Featured Image from URL field.
|
163 |
+
|
164 |
= 2.9.1 =
|
165 |
* Improvement: URL from Post Content feature can work with the nth image now; Improvement: Hide Featured Media feature can work with Custom Post Types now; Bug fix: image width was being limited to 1000px; Bug fix: conflict with internal images.
|
166 |
|
704 |
|
705 |
== Upgrade Notice ==
|
706 |
|
707 |
+
= 2.9.2 =
|
708 |
+
* Bug fix: internal images were not being shown when used into Featured Image from URL field.
|
709 |
+
|
710 |
= 2.9.1 =
|
711 |
* Improvement: URL from Post Content feature can work with the nth image now; Improvement: Hide Featured Media feature can work with Custom Post Types now; Bug fix: image width was being limited to 1000px; Bug fix: conflict with internal images.
|
712 |
|