Featured Image From URL - Version 2.4.4

Version Description

  • Bug fix: Yoast warnings/notices.
Download this release

Release Info

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

Code changes from version 2.4.3 to 2.4.4

admin/html/menu.html CHANGED
@@ -20,7 +20,7 @@
20
  <li><a href="#tabs-c">Video</a></li>
21
  <li><a href="#tabs-o">WooCommerce</a></li>
22
  <li><a href="#tabs-p">WP All Import</a></li>
23
- <li><a href="#tabs-a">Premium version <b style="border-radius:2px;padding:3px;background-color:#32373c;color:white">30%OFF</b></a></li>
24
  <br>
25
  <br>
26
  <div id="tabs-a">
@@ -33,14 +33,14 @@
33
  <div style="display:inline-block;;position:relative;top:-30px">
34
  <table style="width:100%;border: 0px dotted #000">
35
  <tr>
36
- <td><center></center></td><td><center>Money</center></td><td><center>Bitcoin</center></td>
37
  </tr>
38
  <tr>
39
  <td style="width:60%"
40
  <div>
41
- Donate <b>US$ 35</b> and receive the download link by email within 12 hours.<br>
42
  Moreover, <b>you will have lifetime automatic updates</b>.<br><br>
43
- <i>* price valid for April 2019</i>
44
  </div>
45
  </td>
46
  <td style="width:20%">
20
  <li><a href="#tabs-c">Video</a></li>
21
  <li><a href="#tabs-o">WooCommerce</a></li>
22
  <li><a href="#tabs-p">WP All Import</a></li>
23
+ <li><a href="#tabs-a">Premium version <b style="border-radius:2px;padding:3px;background-color:#32373c;color:white">40%OFF</b></a></li>
24
  <br>
25
  <br>
26
  <div id="tabs-a">
33
  <div style="display:inline-block;;position:relative;top:-30px">
34
  <table style="width:100%;border: 0px dotted #000">
35
  <tr>
36
+ <td><center></center></td><td><center>Money (PayPal)</center></td><td><center>Bitcoin</center></td>
37
  </tr>
38
  <tr>
39
  <td style="width:60%"
40
  <div>
41
+ Donate <b>US$ 29,90</b> and receive the download link by email within 12 hours.<br>
42
  Moreover, <b>you will have lifetime automatic updates</b>.<br><br>
43
+ <i>* price valid for May 2019</i>
44
  </div>
45
  </td>
46
  <td style="width:20%">
admin/html/meta-box.html CHANGED
@@ -38,8 +38,8 @@
38
  style="<?php echo $align, $margin, $show_button ?>" >Preview</a>
39
 
40
  <div id="fifu_news" style="top:10px; <?php echo $show_news ?>">
41
- <p style="font-size: 12px; padding: 10px; border-bottom: 2px solid red; border-top: 2px solid red; color: black; background: repeating-linear-gradient(-55deg,white,white 2px,whitesmoke 2px,whitesmoke 5px);
42
  background-color: whitesmoke; border-radius: 15px 15px 15px 15px; position: relative; top: 10px; box-shadow: 2px 2px 2px #aaaaaa;">Please report any problem to <b>marcel@featuredimagefromurl.com</b><br>It should be fixed in 24 hours.</p>
43
- <p style="font-size: 12px; padding: 10px; border-bottom: 2px solid darkblue; border-top: 2px solid darkblue; color: black; background: repeating-linear-gradient(-55deg,white,white 2px,whitesmoke 2px,whitesmoke 5px);
44
- background-color: whitesmoke; border-radius: 15px 15px 15px 15px; position: relative; top: 10px; box-shadow: 2px 2px 2px #aaaaaa;">Product Gallery, Video and Slider fields are only available in the <a href="wp-admin/admin.php?page=featured-image-from-url#tabs-a"><b>premium</b></a> version (<b>30%OFF</b> in April 2019).</p>
45
  </div>
38
  style="<?php echo $align, $margin, $show_button ?>" >Preview</a>
39
 
40
  <div id="fifu_news" style="top:10px; <?php echo $show_news ?>">
41
+ <p style="font-size: 12px; padding: 10px; border-bottom: 2px solid red; border-top: 2px solid red; color: black; background: repeating-linear-gradient(-55deg,white,white 2px,whitesmoke 2px,white 5px);
42
  background-color: whitesmoke; border-radius: 15px 15px 15px 15px; position: relative; top: 10px; box-shadow: 2px 2px 2px #aaaaaa;">Please report any problem to <b>marcel@featuredimagefromurl.com</b><br>It should be fixed in 24 hours.</p>
43
+ <p style="font-size: 12px; padding: 10px; border-bottom: 2px solid limegreen; border-top: 2px solid limegreen; color: black; background: repeating-linear-gradient(-55deg,white,white 2px,whitesmoke 2px,white 5px);
44
+ background-color: whitesmoke; border-radius: 15px 15px 15px 15px; position: relative; top: 10px; box-shadow: 2px 2px 2px #aaaaaa;">Product Gallery, Video and Slider fields are only available in the <a href="wp-admin/admin.php?page=featured-image-from-url#tabs-a"><b>premium</b></a> version (<b>40%OFF</b> in May 2019).</p>
45
  </div>
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.4.3
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.4.4
8
  * Author: Marcel Jacques Machado
9
  * Author URI: https://www.linkedin.com/in/marceljm/
10
  */
includes/attachment.php CHANGED
@@ -108,3 +108,17 @@ function fifu_get_internal_image_path() {
108
  return $_SERVER['SERVER_NAME'] . "/wp-content/uploads/";
109
  }
110
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
108
  return $_SERVER['SERVER_NAME'] . "/wp-content/uploads/";
109
  }
110
 
111
+ // yoast warnings and notices
112
+
113
+ add_filter('wp_get_attachment_metadata', 'fifu_filter_wp_get_attachment_metadata', 10, 2);
114
+
115
+ function fifu_filter_wp_get_attachment_metadata($data, $post_id) {
116
+ if (is_plugin_active('wordpress-seo/wp-seo.php') && !$data) {
117
+ $arr_size = array();
118
+ $arr_size['width'] = null;
119
+ $arr_size['height'] = null;
120
+ return $arr_size;
121
+ }
122
+ return $data;
123
+ }
124
+
readme.txt CHANGED
@@ -157,6 +157,9 @@ Features:
157
 
158
  == Changelog ==
159
 
 
 
 
160
  = 2.4.3 =
161
  * Bug fixes: lightbox image size; metadata cache and lockscreen.
162
 
@@ -556,6 +559,9 @@ was removed. To finish, a Premium version is now been presented.
556
 
557
  == Upgrade Notice ==
558
 
 
 
 
559
  = 2.4.3 =
560
  * Bug fixes: lightbox image size; metadata cache and lockscreen.
561
 
157
 
158
  == Changelog ==
159
 
160
+ = 2.4.4 =
161
+ * Bug fix: Yoast warnings/notices.
162
+
163
  = 2.4.3 =
164
  * Bug fixes: lightbox image size; metadata cache and lockscreen.
165
 
559
 
560
  == Upgrade Notice ==
561
 
562
+ = 2.4.4 =
563
+ * Bug fix: Yoast warnings/notices.
564
+
565
  = 2.4.3 =
566
  * Bug fixes: lightbox image size; metadata cache and lockscreen.
567