Featured Image From URL - Version 1.4.4

Version Description

  • Bug fixes.

=

Download this release

Release Info

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

Code changes from version 1.4.3 to 1.4.4

featured-image-from-url.php CHANGED
@@ -3,7 +3,7 @@
3
  /*
4
  * Plugin Name: Featured Image From URL
5
  * Description: Allows to use an external image as Featured Image of your post, page or Custom Post Type, such as WooCommerce Product (supports Product Gallery also).
6
- * Version: 1.4.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: Allows to use an external image as Featured Image of your post, page or Custom Post Type, such as WooCommerce Product (supports Product Gallery also).
6
+ * Version: 1.4.4
7
  * Author: Marcel Jacques Machado
8
  * Author URI: http://marceljm.com/wordpress/featured-image-from-url-premium/
9
  */
includes/html/sirv.html ADDED
@@ -0,0 +1 @@
 
1
+ <script src="https://scripts.sirv.com/sirv.js"></script>
includes/thumbnail.php CHANGED
@@ -1,6 +1,7 @@
1
  <?php
2
 
3
  add_filter('wp_head', 'fifu_add_social_tags');
 
4
 
5
  function fifu_add_social_tags() {
6
  $post_id = get_the_ID();
@@ -10,9 +11,13 @@ function fifu_add_social_tags() {
10
 
11
  if ($url)
12
  include 'html/social.html';
 
13
 
14
- if (is_plugin_active('sirv/sirv.php'))
 
 
15
  include 'html/sirv.html';
 
16
  }
17
 
18
  add_action('the_post', 'fifu_choose');
1
  <?php
2
 
3
  add_filter('wp_head', 'fifu_add_social_tags');
4
+ add_filter('wp_head', 'fifu_add_sirv_js');
5
 
6
  function fifu_add_social_tags() {
7
  $post_id = get_the_ID();
11
 
12
  if ($url)
13
  include 'html/social.html';
14
+ }
15
 
16
+ function fifu_add_sirv_js() {
17
+ include_once(ABSPATH . 'wp-admin/includes/plugin.php');
18
+ if (is_plugin_active('sirv/sirv.php')) {
19
  include 'html/sirv.html';
20
+ }
21
  }
22
 
23
  add_action('the_post', 'fifu_choose');
readme.txt CHANGED
@@ -250,6 +250,9 @@ was removed. To finish, a Premium version is now been presented.
250
  = 1.4.3 =
251
  * Full integration with Sirv plugin.
252
 
 
 
 
253
  == Upgrade Notice ==
254
 
255
  = 1.0 =
@@ -336,3 +339,6 @@ was removed. To finish, a Premium version is now been presented.
336
 
337
  = 1.4.3 =
338
  * Full integration with Sirv plugin.
 
 
 
250
  = 1.4.3 =
251
  * Full integration with Sirv plugin.
252
 
253
+ = 1.4.4 =
254
+ * Bug fixes.
255
+
256
  == Upgrade Notice ==
257
 
258
  = 1.0 =
339
 
340
  = 1.4.3 =
341
  * Full integration with Sirv plugin.
342
+
343
+ = 1.4.4 =
344
+ * Bug fixes.