Featured Image From URL - Version 2.5.8

Version Description

  • Improvement: Save Image Dimensions is faster now.
Download this release

Release Info

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

Code changes from version 2.5.7 to 2.5.8

admin/html/menu.html CHANGED
@@ -40,7 +40,7 @@
40
  <div>
41
  Donate <strike>US$ 50,00</strike> <b>US$ 39,90</b> and receive your license key and the download link by email within 12 hours.
42
  Moreover, <b>you will have lifetime automatic updates</b>.<br><br>
43
- <i>* price valid for July 2019</i>
44
  </div>
45
  </td>
46
  <td style="width:20%">
@@ -51,12 +51,7 @@
51
  <td style="width:20%">
52
  <center>
53
  <div>
54
- <form action="https://bitpay.com/checkout" method="post">
55
- <input type="hidden" name="action" value="checkout" />
56
- <input type="hidden" name="posData" value="" />
57
- <input type="hidden" name="data" value="Pckctxne2UGVgpP6lkzkpuMUwLjgOobhW3Sv8ita38+NMu0p/Ze7qZ9rLeOZ6dz5IkCHcy2ypFLkrN8yTFXtiLNC3aoEqZ5ixFBEcWAxgt4nG1p4bHnIKI77FRXb3tH/2GaF8OCwvRZwL3QudvjdIoZcQtCsN2Gh/sQnrTvb0r8dkWP8YSvh7T5a6Qwcb+kpdBDv/3VPzvlhNT9XkzXtMcHB5WzTgJxVusjKe/OFUnvDwz11IzbojBkNWVWlL7rWGZLIsCxmkaVnDacGM60tvg==" />
58
- <input type="image" src="https://bitpay.com/cdn/en_US/bp-btn-pay-currencies.svg" name="submit" style="width: 146px" alt="BitPay, the easy way to pay with bitcoins.">
59
- </form>
60
  </div>
61
  </center>
62
  </td>
@@ -1011,7 +1006,7 @@
1011
  </form>
1012
  </th>
1013
  <th>
1014
- save and use image dimensions (makes posts updates slower)
1015
  </th>
1016
  </tr>
1017
  <tr>
@@ -1038,7 +1033,7 @@
1038
  </form>
1039
  </th>
1040
  <th>
1041
- save the image dimensions of all external featured images now (it shoud take 1-5 seconds by image and requires php-curl installed)
1042
  </th>
1043
  <th>
1044
  <div id="countdown"><?php echo fifu_db_missing_dimensions() ?></div>
40
  <div>
41
  Donate <strike>US$ 50,00</strike> <b>US$ 39,90</b> and receive your license key and the download link by email within 12 hours.
42
  Moreover, <b>you will have lifetime automatic updates</b>.<br><br>
43
+ <i>* price valid for August 2019</i>
44
  </div>
45
  </td>
46
  <td style="width:20%">
51
  <td style="width:20%">
52
  <center>
53
  <div>
54
+ 3C9SWyg2zEByn1RSQ6s5AVw1jKyFzdesUQ
 
 
 
 
 
55
  </div>
56
  </center>
57
  </td>
1006
  </form>
1007
  </th>
1008
  <th>
1009
+ save and use image dimensions
1010
  </th>
1011
  </tr>
1012
  <tr>
1033
  </form>
1034
  </th>
1035
  <th>
1036
+ save the image dimensions of all external featured images now (it requires php-curl)
1037
  </th>
1038
  <th>
1039
  <div id="countdown"><?php echo fifu_db_missing_dimensions() ?></div>
admin/html/meta-box.html CHANGED
@@ -61,7 +61,7 @@
61
  <p style="font-size: 12px; padding: 10px; border-bottom: 2px solid orange; border-top: 2px solid orange; color: black; background: repeating-linear-gradient(-55deg,white,white 2px,whitesmoke 2px,white 5px);
62
  background-color: whitesmoke; border-radius: 15px 5px 15px 5px; position: relative; top: 5px;">Product Gallery, Video and Slider fields are only available in <a href="admin.php?page=featured-image-from-url#tabs-a"><b>premium</b></a> version</p>
63
  <p style="font-size: 12px; padding: 10px; border-bottom: 2px solid #34ba1c; border-top: 2px solid #34ba1c; color: black; background: repeating-linear-gradient(-55deg,white,white 2px,whitesmoke 2px,white 5px);
64
- background-color: whitesmoke; border-radius: 15px 5px 15px 5px; position: relative; top: 5px;">New: documentation and batch example added to "REST API"</p>
65
  <!--p style="font-size: 12px; padding: 10px; border-bottom: 2px solid #538dd3; border-top: 2px solid #538dd3; color: black; background: repeating-linear-gradient(-55deg,white,white 2px,whitesmoke 2px,white 5px);
66
  background-color: whitesmoke; border-radius: 15px 5px 15px 5px; position: relative; top: 5px;">New: FAQ added to "WP All Import"</p-->
67
  <!--p style="font-size: 12px; padding: 10px; border-bottom: 2px solid #7e600e ; border-top: 2px solid #7e600e ; color: black; background: repeating-linear-gradient(-55deg,white,white 2px,whitesmoke 2px,white 5px);
61
  <p style="font-size: 12px; padding: 10px; border-bottom: 2px solid orange; border-top: 2px solid orange; color: black; background: repeating-linear-gradient(-55deg,white,white 2px,whitesmoke 2px,white 5px);
62
  background-color: whitesmoke; border-radius: 15px 5px 15px 5px; position: relative; top: 5px;">Product Gallery, Video and Slider fields are only available in <a href="admin.php?page=featured-image-from-url#tabs-a"><b>premium</b></a> version</p>
63
  <p style="font-size: 12px; padding: 10px; border-bottom: 2px solid #34ba1c; border-top: 2px solid #34ba1c; color: black; background: repeating-linear-gradient(-55deg,white,white 2px,whitesmoke 2px,white 5px);
64
+ background-color: whitesmoke; border-radius: 15px 5px 15px 5px; position: relative; top: 5px;">New: "Save Image Dimensions" is much faster now</p>
65
  <!--p style="font-size: 12px; padding: 10px; border-bottom: 2px solid #538dd3; border-top: 2px solid #538dd3; color: black; background: repeating-linear-gradient(-55deg,white,white 2px,whitesmoke 2px,white 5px);
66
  background-color: whitesmoke; border-radius: 15px 5px 15px 5px; position: relative; top: 5px;">New: FAQ added to "WP All Import"</p-->
67
  <!--p style="font-size: 12px; padding: 10px; border-bottom: 2px solid #7e600e ; border-top: 2px solid #7e600e ; color: black; background: repeating-linear-gradient(-55deg,white,white 2px,whitesmoke 2px,white 5px);
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.5.7
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.5.8
8
  * Author: Marcel Jacques Machado
9
  * Author URI: https://www.linkedin.com/in/marceljm/
10
  */
includes/util.php CHANGED
@@ -60,7 +60,10 @@ function fifu_maximum($dimension) {
60
 
61
  function fifu_curl($url) {
62
  $curl = curl_init($url);
 
 
63
  curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
 
64
  $data = curl_exec($curl);
65
  curl_close($curl);
66
  return $data;
60
 
61
  function fifu_curl($url) {
62
  $curl = curl_init($url);
63
+ $headers = array("Range: bytes=0-32768");
64
+ curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);
65
  curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
66
+ curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true);
67
  $data = curl_exec($curl);
68
  curl_close($curl);
69
  return $data;
readme.txt CHANGED
@@ -159,6 +159,9 @@ Features:
159
 
160
  == Changelog ==
161
 
 
 
 
162
  = 2.5.7 =
163
  * Improvement: documentation added to REST API; bug fix: Save Image Dimensions.
164
 
@@ -600,6 +603,9 @@ was removed. To finish, a Premium version is now been presented.
600
 
601
  == Upgrade Notice ==
602
 
 
 
 
603
  = 2.5.7 =
604
  * Improvement: documentation added to REST API; bug fix: Save Image Dimensions.
605
 
159
 
160
  == Changelog ==
161
 
162
+ = 2.5.8 =
163
+ * Improvement: Save Image Dimensions is faster now.
164
+
165
  = 2.5.7 =
166
  * Improvement: documentation added to REST API; bug fix: Save Image Dimensions.
167
 
603
 
604
  == Upgrade Notice ==
605
 
606
+ = 2.5.8 =
607
+ * Improvement: Save Image Dimensions is faster now.
608
+
609
  = 2.5.7 =
610
  * Improvement: documentation added to REST API; bug fix: Save Image Dimensions.
611