Version Description
- Bug fix: priority feature.
Download this release
Release Info
Developer | marceljm |
Plugin | Featured Image From URL |
Version | 2.0.2 |
Comparing to | |
See all releases |
Code changes from version 2.0.1 to 2.0.2
- admin/menu.php +1 -1
- featured-image-from-url.php +1 -1
- includes/thumbnail.php +1 -1
- readme.txt +6 -0
admin/menu.php
CHANGED
@@ -61,7 +61,6 @@ function fifu_get_menu_html() {
|
|
61 |
fifu_enable_fake2();
|
62 |
} else {
|
63 |
fifu_disable_fake2();
|
64 |
-
delete_option('fifu_fake_attach_id');
|
65 |
update_option('fifu_fake_created', false);
|
66 |
}
|
67 |
|
@@ -331,6 +330,7 @@ function fifu_disable_fake2() {
|
|
331 |
wp_delete_attachment($i->post_id);
|
332 |
}
|
333 |
fifu_disable_fake_ctgr();
|
|
|
334 |
}
|
335 |
|
336 |
function fifu_disable_fake_ctgr() {
|
61 |
fifu_enable_fake2();
|
62 |
} else {
|
63 |
fifu_disable_fake2();
|
|
|
64 |
update_option('fifu_fake_created', false);
|
65 |
}
|
66 |
|
330 |
wp_delete_attachment($i->post_id);
|
331 |
}
|
332 |
fifu_disable_fake_ctgr();
|
333 |
+
delete_option('fifu_fake_attach_id');
|
334 |
}
|
335 |
|
336 |
function fifu_disable_fake_ctgr() {
|
featured-image-from-url.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Plugin Name: Featured Image From URL
|
5 |
* Plugin URI: https://featuredimagefromurl.com/
|
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.0.
|
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://featuredimagefromurl.com/
|
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.0.2
|
8 |
* Author: Marcel Jacques Machado
|
9 |
* Author URI: https://www.linkedin.com/in/marceljm/
|
10 |
*/
|
includes/thumbnail.php
CHANGED
@@ -156,7 +156,7 @@ function fifu_is_fake_disabled() {
|
|
156 |
|
157 |
function fifu_has_internal_image($post_id) {
|
158 |
$att_id = get_post_meta($post_id, '_thumbnail_id', true);
|
159 |
-
return $att_id && $att_id != -1 && $att_id != get_option('fifu_fake_attach_id') && get_post($att_id)->post_author != 77777;
|
160 |
}
|
161 |
|
162 |
function fifu_show_internal_instead_of_external($post_id) {
|
156 |
|
157 |
function fifu_has_internal_image($post_id) {
|
158 |
$att_id = get_post_meta($post_id, '_thumbnail_id', true);
|
159 |
+
return $att_id && $att_id != -1 && $att_id != get_option('fifu_fake_attach_id') && (get_post($att_id) && get_post($att_id)->post_author != 77777);
|
160 |
}
|
161 |
|
162 |
function fifu_show_internal_instead_of_external($post_id) {
|
readme.txt
CHANGED
@@ -161,6 +161,9 @@ Features:
|
|
161 |
|
162 |
== Changelog ==
|
163 |
|
|
|
|
|
|
|
164 |
= 2.0.1 =
|
165 |
* Bug fix: lazy load.
|
166 |
|
@@ -434,6 +437,9 @@ was removed. To finish, a Premium version is now been presented.
|
|
434 |
|
435 |
== Upgrade Notice ==
|
436 |
|
|
|
|
|
|
|
437 |
= 2.0.1 =
|
438 |
* Bug fix: lazy load.
|
439 |
|
161 |
|
162 |
== Changelog ==
|
163 |
|
164 |
+
= 2.0.2 =
|
165 |
+
* Bug fix: priority feature.
|
166 |
+
|
167 |
= 2.0.1 =
|
168 |
* Bug fix: lazy load.
|
169 |
|
437 |
|
438 |
== Upgrade Notice ==
|
439 |
|
440 |
+
= 2.0.2 =
|
441 |
+
* Bug fix: priority feature.
|
442 |
+
|
443 |
= 2.0.1 =
|
444 |
* Bug fix: lazy load.
|
445 |
|