Featured Image From URL - Version 2.6.6

Version Description

  • Bug fixes: title/logo disappeared in some themes; menu broken due instability on jquery.com (replaced by Cloudflare).
Download this release

Release Info

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

Code changes from version 2.6.5 to 2.6.6

admin/menu.php CHANGED
@@ -7,9 +7,9 @@ add_action('admin_menu', 'fifu_insert_menu');
7
  function fifu_insert_menu() {
8
  if (strpos($_SERVER['REQUEST_URI'], 'featured-image-from-url') !== false) {
9
  wp_enqueue_style('font-awesome', 'https://use.fontawesome.com/releases/v5.7.0/css/all.css');
10
- wp_enqueue_style('jquery-ui-style', '//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.min.css');
11
- wp_enqueue_script('jquery-ui', 'https://code.jquery.com/ui/1.11.4/jquery-ui.min.js');
12
- wp_enqueue_script('jquery', 'https://code.jquery.com/jquery-1.11.3.min.js');
13
  wp_enqueue_script('jquery-block-ui', 'https://cdnjs.cloudflare.com/ajax/libs/jquery.blockUI/2.70/jquery.blockUI.min.js');
14
  }
15
 
7
  function fifu_insert_menu() {
8
  if (strpos($_SERVER['REQUEST_URI'], 'featured-image-from-url') !== false) {
9
  wp_enqueue_style('font-awesome', 'https://use.fontawesome.com/releases/v5.7.0/css/all.css');
10
+ wp_enqueue_style('jquery-ui-style', 'https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/themes/base/jquery-ui.min.css');
11
+ wp_enqueue_script('jquery-ui', 'https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.11.4/jquery-ui.min.js');
12
+ wp_enqueue_script('jquery', 'https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.min.js');
13
  wp_enqueue_script('jquery-block-ui', 'https://cdnjs.cloudflare.com/ajax/libs/jquery.blockUI/2.70/jquery.blockUI.min.js');
14
  }
15
 
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.6.5
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.6.6
8
  * Author: Marcel Jacques Machado
9
  * Author URI: https://www.linkedin.com/in/marceljm/
10
  */
includes/attachment.php CHANGED
@@ -71,6 +71,9 @@ function fifu_replace_attachment_image_src($image, $att_id, $size) {
71
  if (fifu_is_internal_image($image))
72
  return $image;
73
 
 
 
 
74
  $post = get_post($att_id);
75
 
76
  if (fifu_is_off('fifu_data_generation')) {
71
  if (fifu_is_internal_image($image))
72
  return $image;
73
 
74
+ if (!$att_id)
75
+ return $image;
76
+
77
  $post = get_post($att_id);
78
 
79
  if (fifu_is_off('fifu_data_generation')) {
readme.txt CHANGED
@@ -159,6 +159,9 @@ Features:
159
 
160
  == Changelog ==
161
 
 
 
 
162
  = 2.6.5 =
163
  * Deprecated: Featured Image > Priority.
164
 
@@ -624,6 +627,9 @@ was removed. To finish, a Premium version is now been presented.
624
 
625
  == Upgrade Notice ==
626
 
 
 
 
627
  = 2.6.5 =
628
  * Deprecated: Featured Image > Priority.
629
 
159
 
160
  == Changelog ==
161
 
162
+ = 2.6.6 =
163
+ * Bug fixes: title/logo disappeared in some themes; menu broken due instability on jquery.com (replaced by Cloudflare).
164
+
165
  = 2.6.5 =
166
  * Deprecated: Featured Image > Priority.
167
 
627
 
628
  == Upgrade Notice ==
629
 
630
+ = 2.6.6 =
631
+ * Bug fixes: title/logo disappeared in some themes; menu broken due instability on jquery.com (replaced by Cloudflare).
632
+
633
  = 2.6.5 =
634
  * Deprecated: Featured Image > Priority.
635