Featured Image From URL - Version 4.0.7

Version Description

  • Fix: integration with WCFM plugin was not working anymore.
Download this release

Release Info

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

Code changes from version 4.0.6 to 4.0.7

admin/html/support-data.html CHANGED
@@ -18,6 +18,7 @@ Products:<?php echo class_exists('WooCommerce') ? wp_count_posts('product')->pub
18
  Images without dimensions:<?php echo fifu_db_missing_dimensions() ?>;
19
  URLs with metadata:<?php echo fifu_db_count_urls_with_metadata() ?>;
20
  URLs:<?php echo fifu_db_count_urls() ?>;
 
21
  php-curl:<?php echo fifu_has_curl() ? 'yes' : 'no' ?>;
22
  Max lenght:<?php echo fifu_db_get_guid_size() ?>;
23
  Plugins:<?php echo fifu_get_plugins_list() ?>;
18
  Images without dimensions:<?php echo fifu_db_missing_dimensions() ?>;
19
  URLs with metadata:<?php echo fifu_db_count_urls_with_metadata() ?>;
20
  URLs:<?php echo fifu_db_count_urls() ?>;
21
+ Users:<?php echo fifu_number_of_users() ?>;
22
  php-curl:<?php echo fifu_has_curl() ? 'yes' : 'no' ?>;
23
  Max lenght:<?php echo fifu_db_get_guid_size() ?>;
24
  Plugins:<?php echo fifu_get_plugins_list() ?>;
admin/menu.php CHANGED
@@ -505,6 +505,10 @@ function fifu_has_curl() {
505
  return function_exists('curl_version');
506
  }
507
 
 
 
 
 
508
  function fifu_is_valid_nonce($nonce) {
509
  return isset($_POST[$nonce]) && wp_verify_nonce($_POST[$nonce], FIFU_ACTION_SETTINGS);
510
  }
505
  return function_exists('curl_version');
506
  }
507
 
508
+ function fifu_number_of_users() {
509
+ return count_users()['total_users'];
510
+ }
511
+
512
  function fifu_is_valid_nonce($nonce) {
513
  return isset($_POST[$nonce]) && wp_verify_nonce($_POST[$nonce], FIFU_ACTION_SETTINGS);
514
  }
admin/meta-box.php CHANGED
@@ -147,6 +147,15 @@ function fifu_save_properties($post_id) {
147
  if (isset($_POST['action']) && $_POST['action'] == 'woocommerce_do_ajax_product_import')
148
  return;
149
 
 
 
 
 
 
 
 
 
 
150
  if (!fifu_has_properties())
151
  return;
152
 
@@ -166,13 +175,6 @@ function fifu_save_properties($post_id) {
166
  fifu_update_or_delete($post_id, 'fifu_image_url', $url);
167
  }
168
 
169
- /* image url from wcfm */
170
- if (!$url && fifu_is_wcfm_active() && isset($_POST['wcfm_products_manage_form'])) {
171
- $url = esc_url_raw(rtrim(fifu_get_wcfm_url($_POST['wcfm_products_manage_form'])));
172
- if ($url)
173
- fifu_update_or_delete($post_id, 'fifu_image_url', $url);
174
- }
175
-
176
  /* image url from toolset forms */
177
  if (fifu_is_toolset_active() && isset($_POST['wpcf-fifu_image_url'])) {
178
  $url = esc_url_raw(rtrim($_POST['wpcf-fifu_image_url']));
147
  if (isset($_POST['action']) && $_POST['action'] == 'woocommerce_do_ajax_product_import')
148
  return;
149
 
150
+ /* image url from wcfm */
151
+ if (isset($_POST['action']) && $_POST['action'] == 'wcfm_ajax_controller') {
152
+ if (fifu_is_wcfm_active() && isset($_POST['wcfm_products_manage_form'])) {
153
+ $image_url = esc_url_raw(rtrim(fifu_get_wcfm_url($_POST['wcfm_products_manage_form'])));
154
+ fifu_dev_set_image($post_id, $image_url);
155
+ return;
156
+ }
157
+ }
158
+
159
  if (!fifu_has_properties())
160
  return;
161
 
175
  fifu_update_or_delete($post_id, 'fifu_image_url', $url);
176
  }
177
 
 
 
 
 
 
 
 
178
  /* image url from toolset forms */
179
  if (fifu_is_toolset_active() && isset($_POST['wpcf-fifu_image_url'])) {
180
  $url = esc_url_raw(rtrim($_POST['wpcf-fifu_image_url']));
featured-image-from-url.php CHANGED
@@ -4,11 +4,11 @@
4
  * Plugin Name: Featured Image from URL (FIFU)
5
  * Plugin URI: https://fifu.app/
6
  * Description: Use an external image/video as featured image/video of a post or WooCommerce product.
7
- * Version: 4.0.6
8
  * Author: fifu.app
9
  * Author URI: https://fifu.app/
10
  * WC requires at least: 4.0
11
- * WC tested up to: 6.7.0
12
  * Text Domain: featured-image-from-url
13
  * License: GPLv3
14
  * License URI: https://www.gnu.org/licenses/gpl-3.0.html
4
  * Plugin Name: Featured Image from URL (FIFU)
5
  * Plugin URI: https://fifu.app/
6
  * Description: Use an external image/video as featured image/video of a post or WooCommerce product.
7
+ * Version: 4.0.7
8
  * Author: fifu.app
9
  * Author URI: https://fifu.app/
10
  * WC requires at least: 4.0
11
+ * WC tested up to: 6.8.0
12
  * Text Domain: featured-image-from-url
13
  * License: GPLv3
14
  * License URI: https://www.gnu.org/licenses/gpl-3.0.html
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://donorbox.org/fifu
4
  Tags: featured, image, url, video, woocommerce
5
  Requires at least: 5.3
6
  Tested up to: 6.0.1
7
- Stable tag: 4.0.6
8
  License: GPLv3
9
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -257,20 +257,20 @@ Featured Image, Figurë e Zgjedhur, Image mise en avant, Uitgelichte afbeelding,
257
 
258
  == Changelog ==
259
 
 
 
 
260
  = 4.0.6 =
261
  * Fix: notice (Trying to get property ID of non-object).
262
 
263
  = 4.0.5 =
264
  * Fix: Auto Set Image Title (AUTO-DRAFT value was being saved for products without title).
265
 
266
- = 4.0.4 =
267
- * New: fields for Gravity Forms plugin; FIFU Cloud: available for all users; fix: Default Featured Image > Post types; fix: Hide Featured Media (conflict with related posts section); fix: Auto set featured media from post content (unduly working for Elementor plugin editions).
268
-
269
  = others =
270
  * [more](https://fifu.app/changelog)
271
 
272
 
273
  == Upgrade Notice ==
274
 
275
- = 4.0.6 =
276
- * Fix: notice (Trying to get property ID of non-object).
4
  Tags: featured, image, url, video, woocommerce
5
  Requires at least: 5.3
6
  Tested up to: 6.0.1
7
+ Stable tag: 4.0.7
8
  License: GPLv3
9
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
10
 
257
 
258
  == Changelog ==
259
 
260
+ = 4.0.7 =
261
+ * Fix: integration with WCFM plugin was not working anymore.
262
+
263
  = 4.0.6 =
264
  * Fix: notice (Trying to get property ID of non-object).
265
 
266
  = 4.0.5 =
267
  * Fix: Auto Set Image Title (AUTO-DRAFT value was being saved for products without title).
268
 
 
 
 
269
  = others =
270
  * [more](https://fifu.app/changelog)
271
 
272
 
273
  == Upgrade Notice ==
274
 
275
+ = 4.0.7 =
276
+ * Fix: integration with WCFM plugin was not working anymore.