Featured Image From URL - Version 2.4.5

Version Description

  • Bug fix: undefined function error for PHP5 users.
Download this release

Release Info

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

Code changes from version 2.4.4 to 2.4.5

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.4
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.5
8
  * Author: Marcel Jacques Machado
9
  * Author URI: https://www.linkedin.com/in/marceljm/
10
  */
includes/attachment.php CHANGED
@@ -113,6 +113,9 @@ function fifu_get_internal_image_path() {
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;
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 (!function_exists('is_plugin_active'))
117
+ require_once(ABSPATH . '/wp-admin/includes/plugin.php');
118
+
119
  if (is_plugin_active('wordpress-seo/wp-seo.php') && !$data) {
120
  $arr_size = array();
121
  $arr_size['width'] = null;
readme.txt CHANGED
@@ -157,6 +157,9 @@ Features:
157
 
158
  == Changelog ==
159
 
 
 
 
160
  = 2.4.4 =
161
  * Bug fix: Yoast warnings/notices.
162
 
@@ -559,6 +562,9 @@ was removed. To finish, a Premium version is now been presented.
559
 
560
  == Upgrade Notice ==
561
 
 
 
 
562
  = 2.4.4 =
563
  * Bug fix: Yoast warnings/notices.
564
 
157
 
158
  == Changelog ==
159
 
160
+ = 2.4.5 =
161
+ * Bug fix: undefined function error for PHP5 users.
162
+
163
  = 2.4.4 =
164
  * Bug fix: Yoast warnings/notices.
165
 
562
 
563
  == Upgrade Notice ==
564
 
565
+ = 2.4.5 =
566
+ * Bug fix: undefined function error for PHP5 users.
567
+
568
  = 2.4.4 =
569
  * Bug fix: Yoast warnings/notices.
570