Featured Image From URL - Version 1.5.4

Version Description

  • Bug fix: compatibility with old PHP versions.

=

Download this release

Release Info

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

Code changes from version 1.5.3 to 1.5.4

admin/images/fifu-text.jpg DELETED
Binary file
featured-image-from-url.php CHANGED
@@ -3,7 +3,7 @@
3
  /*
4
  * Plugin Name: Featured Image From URL
5
  * 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.
6
- * Version: 1.5.3
7
  * Author: Marcel Jacques Machado
8
  * Author URI: http://marceljm.com/wordpress/featured-image-from-url-premium/
9
  */
3
  /*
4
  * Plugin Name: Featured Image From URL
5
  * 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.
6
+ * Version: 1.5.4
7
  * Author: Marcel Jacques Machado
8
  * Author URI: http://marceljm.com/wordpress/featured-image-from-url-premium/
9
  */
includes/external-post.php CHANGED
@@ -67,5 +67,7 @@ function fifu_first_url_in_content($post_id) {
67
  $content = get_post_field('post_content', $post_id);
68
  $matches = array();
69
  preg_match_all('/<img[^>]*>/', $content, $matches);
70
- return $matches && $matches[0] ? explode('"', explode('src="', $matches[0][0])[1])[0] : null;
 
 
71
  }
67
  $content = get_post_field('post_content', $post_id);
68
  $matches = array();
69
  preg_match_all('/<img[^>]*>/', $content, $matches);
70
+ $aux1 = explode('src="', $matches[0][0]);
71
+ $aux2 = explode('"', $aux1[1]);
72
+ return $matches && $matches[0] ? $aux2[0] : null;
73
  }
readme.txt CHANGED
@@ -1,7 +1,7 @@
1
  === Plugin Name ===
2
  Contributors: marceljm
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=8BLDLZ3HDBGQG
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, 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
5
  Requires at least: 4.0
6
  Tested up to: 4.8
7
  Stable tag: 4.8
@@ -296,6 +296,9 @@ was removed. To finish, a Premium version is now been presented.
296
  = 1.5.3 =
297
  * Auto set featured image.
298
 
 
 
 
299
  == Upgrade Notice ==
300
 
301
  = 1.0 =
@@ -412,3 +415,6 @@ was removed. To finish, a Premium version is now been presented.
412
 
413
  = 1.5.3 =
414
  * Auto set featured image.
 
 
 
1
  === Plugin Name ===
2
  Contributors: marceljm
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=8BLDLZ3HDBGQG
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, 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
5
  Requires at least: 4.0
6
  Tested up to: 4.8
7
  Stable tag: 4.8
296
  = 1.5.3 =
297
  * Auto set featured image.
298
 
299
+ = 1.5.4 =
300
+ * Bug fix: compatibility with old PHP versions.
301
+
302
  == Upgrade Notice ==
303
 
304
  = 1.0 =
415
 
416
  = 1.5.3 =
417
  * Auto set featured image.
418
+
419
+ = 1.5.4 =
420
+ * Bug fix: compatibility with old PHP versions.