Version Description
- Bug fix: conflict betweem internal and external featured image fields on post editor.
Download this release
Release Info
Developer | marceljm |
Plugin | Featured Image From URL |
Version | 2.8.5 |
Comparing to | |
See all releases |
Code changes from version 2.8.4 to 2.8.5
- admin/db.php +17 -4
- admin/html/menu.html +30 -0
- featured-image-from-url.php +1 -1
- readme.txt +7 -1
admin/db.php
CHANGED
@@ -408,7 +408,13 @@ class FifuDb {
|
|
408 |
$this->wpdb->get_results("
|
409 |
DELETE FROM " . $this->postmeta . "
|
410 |
WHERE meta_key IN ('_wp_attached_file','_wp_attachment_image_alt')
|
411 |
-
AND post_id IN (" . $ids . ")
|
|
|
|
|
|
|
|
|
|
|
|
|
412 |
);
|
413 |
}
|
414 |
|
@@ -675,6 +681,13 @@ class FifuDb {
|
|
675 |
if (fifu_get_default_url())
|
676 |
set_post_thumbnail($post_id, get_option('fifu_default_attach_id'));
|
677 |
} else {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
678 |
if (fifu_get_default_url()) {
|
679 |
$post_thumbnail_id = get_post_thumbnail_id($post_id);
|
680 |
$hasInternal = $post_thumbnail_id && get_post_field('post_author', $post_thumbnail_id) != $this->author;
|
@@ -700,8 +713,8 @@ class FifuDb {
|
|
700 |
update_post_meta($att_id, '_wp_attachment_image_alt', $alt);
|
701 |
$attachments = $this->get_attachments_without_post($post_id);
|
702 |
if ($attachments) {
|
703 |
-
$this->delete_attachments($attachments);
|
704 |
$this->delete_attachment_meta_url_and_alt($attachments);
|
|
|
705 |
}
|
706 |
}
|
707 |
if (fifu_is_on('fifu_save_dimensions'))
|
@@ -742,8 +755,8 @@ class FifuDb {
|
|
742 |
update_post_meta($att_id, '_wp_attachment_image_alt', $alt);
|
743 |
$attachments = $this->get_ctgr_attachments_without_post($term_id);
|
744 |
if ($attachments) {
|
745 |
-
$this->delete_attachments($attachments);
|
746 |
$this->delete_attachment_meta_url_and_alt($attachments);
|
|
|
747 |
}
|
748 |
}
|
749 |
}
|
@@ -801,8 +814,8 @@ class FifuDb {
|
|
801 |
$value = ($value == null) ? $id : $value . ',' . $id;
|
802 |
}
|
803 |
if ($value) {
|
804 |
-
$this->delete_attachments($value);
|
805 |
$this->delete_attachment_meta_url_and_alt($value);
|
|
|
806 |
}
|
807 |
}
|
808 |
}
|
408 |
$this->wpdb->get_results("
|
409 |
DELETE FROM " . $this->postmeta . "
|
410 |
WHERE meta_key IN ('_wp_attached_file','_wp_attachment_image_alt')
|
411 |
+
AND post_id IN (" . $ids . ")
|
412 |
+
AND EXISTS (
|
413 |
+
SELECT 1
|
414 |
+
FROM " . $this->posts . "
|
415 |
+
WHERE id = post_id
|
416 |
+
AND post_author = " . $this->author . "
|
417 |
+
)"
|
418 |
);
|
419 |
}
|
420 |
|
681 |
if (fifu_get_default_url())
|
682 |
set_post_thumbnail($post_id, get_option('fifu_default_attach_id'));
|
683 |
} else {
|
684 |
+
// when an external image is removed and an internal is added at the same time
|
685 |
+
$attachments = $this->get_attachments_without_post($post_id);
|
686 |
+
if ($attachments) {
|
687 |
+
$this->delete_attachment_meta_url_and_alt($attachments);
|
688 |
+
$this->delete_attachments($attachments);
|
689 |
+
}
|
690 |
+
|
691 |
if (fifu_get_default_url()) {
|
692 |
$post_thumbnail_id = get_post_thumbnail_id($post_id);
|
693 |
$hasInternal = $post_thumbnail_id && get_post_field('post_author', $post_thumbnail_id) != $this->author;
|
713 |
update_post_meta($att_id, '_wp_attachment_image_alt', $alt);
|
714 |
$attachments = $this->get_attachments_without_post($post_id);
|
715 |
if ($attachments) {
|
|
|
716 |
$this->delete_attachment_meta_url_and_alt($attachments);
|
717 |
+
$this->delete_attachments($attachments);
|
718 |
}
|
719 |
}
|
720 |
if (fifu_is_on('fifu_save_dimensions'))
|
755 |
update_post_meta($att_id, '_wp_attachment_image_alt', $alt);
|
756 |
$attachments = $this->get_ctgr_attachments_without_post($term_id);
|
757 |
if ($attachments) {
|
|
|
758 |
$this->delete_attachment_meta_url_and_alt($attachments);
|
759 |
+
$this->delete_attachments($attachments);
|
760 |
}
|
761 |
}
|
762 |
}
|
814 |
$value = ($value == null) ? $id : $value . ',' . $id;
|
815 |
}
|
816 |
if ($value) {
|
|
|
817 |
$this->delete_attachment_meta_url_and_alt($value);
|
818 |
+
$this->delete_attachments($value);
|
819 |
}
|
820 |
}
|
821 |
}
|
admin/html/menu.html
CHANGED
@@ -2705,6 +2705,36 @@
|
|
2705 |
From September 2019, always you guys report an issue between FIFU and another plugin or theme, the solution will be posted here.
|
2706 |
</div>
|
2707 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2708 |
<div class="box">
|
2709 |
<table>
|
2710 |
<tr>
|
2705 |
From September 2019, always you guys report an issue between FIFU and another plugin or theme, the solution will be posted here.
|
2706 |
</div>
|
2707 |
</div>
|
2708 |
+
<div class="box">
|
2709 |
+
<table>
|
2710 |
+
<tr>
|
2711 |
+
<td style="border-bottom:none">2020-01-18</td>
|
2712 |
+
<td style="border-bottom:none"><h3>Ajax Load More</h3></td>
|
2713 |
+
<td style="border-bottom:none">plugin</td>
|
2714 |
+
</tr>
|
2715 |
+
</table>
|
2716 |
+
<div class="greybox" style="position: relative; top: -10px">
|
2717 |
+
Loading external featured videos:<br>
|
2718 |
+
1) check "Ajax Load More > Settings > Disable CSS".
|
2719 |
+
</div>
|
2720 |
+
</div>
|
2721 |
+
<div class="box">
|
2722 |
+
<table>
|
2723 |
+
<tr>
|
2724 |
+
<td style="border-bottom:none">2020-01-17</td>
|
2725 |
+
<td style="border-bottom:none"><h3>Multisite Post Duplicator</h3></td>
|
2726 |
+
<td style="border-bottom:none">plugin</td>
|
2727 |
+
</tr>
|
2728 |
+
</table>
|
2729 |
+
<div class="greybox" style="position: relative; top: -10px">
|
2730 |
+
Duplicating post and external featured image:<br>
|
2731 |
+
1) enable "FIFU Settings > Admin Area > Schedule Metadata Generation";<br>
|
2732 |
+
2) access "Multisite Post Duplicator Settings";<br>
|
2733 |
+
3) disable "Copy featured image when duplicating";<br>
|
2734 |
+
4) disable "Copy post content images to destination media library";<br>
|
2735 |
+
5) set "_thumbnail_id" for "Post Meta to ignore".
|
2736 |
+
</div>
|
2737 |
+
</div>
|
2738 |
<div class="box">
|
2739 |
<table>
|
2740 |
<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.8.
|
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.8.5
|
8 |
* Author: Marcel Jacques Machado
|
9 |
* Author URI: https://www.linkedin.com/in/marceljm/
|
10 |
*/
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
|
|
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
|
5 |
Requires at least: 4.0
|
6 |
Tested up to: 5.4
|
7 |
-
Stable tag: 2.8.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -159,6 +159,9 @@ Features:
|
|
159 |
|
160 |
== Changelog ==
|
161 |
|
|
|
|
|
|
|
162 |
= 2.8.4 =
|
163 |
* New: Admin Area > Internal URL Parameters.
|
164 |
|
@@ -681,6 +684,9 @@ was removed. To finish, a Premium version is now been presented.
|
|
681 |
|
682 |
== Upgrade Notice ==
|
683 |
|
|
|
|
|
|
|
684 |
= 2.8.4 =
|
685 |
* New: Admin Area > Internal URL Parameters.
|
686 |
|
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
|
5 |
Requires at least: 4.0
|
6 |
Tested up to: 5.4
|
7 |
+
Stable tag: 2.8.5
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
159 |
|
160 |
== Changelog ==
|
161 |
|
162 |
+
= 2.8.5 =
|
163 |
+
* Bug fix: conflict betweem internal and external featured image fields on post editor.
|
164 |
+
|
165 |
= 2.8.4 =
|
166 |
* New: Admin Area > Internal URL Parameters.
|
167 |
|
684 |
|
685 |
== Upgrade Notice ==
|
686 |
|
687 |
+
= 2.8.5 =
|
688 |
+
* Bug fix: conflict betweem internal and external featured image fields on post editor.
|
689 |
+
|
690 |
= 2.8.4 =
|
691 |
* New: Admin Area > Internal URL Parameters.
|
692 |
|