Featured Image From URL - Version 4.1.8

Version Description

  • Enhancement: Page Redirection (works with local images now); fix: conflict with Search Filter Pro plugin; deprecated: Media RSS Tags > Width; deprecated: Schedule Metadata Generation > Interval; deprecated: Delete All URLs > Confirm.
Download this release

Release Info

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

Code changes from version 4.1.7 to 4.1.8

admin/api.php CHANGED
@@ -900,7 +900,7 @@ function fifu_send_feedback($email, $description, $temporary) {
900
  'fifu_cdn_crop' => fifu_is_on('fifu_cdn_crop'),
901
  'fifu_cdn_social' => fifu_is_on('fifu_cdn_social'),
902
  'fifu_check' => fifu_is_on('fifu_check'),
903
- 'fifu_confirm_delete_all' => fifu_is_on('fifu_confirm_delete_all'),
904
  'fifu_content' => fifu_is_on('fifu_content'),
905
  'fifu_content_cpt' => fifu_is_on('fifu_content_cpt'),
906
  'fifu_content_page' => fifu_is_on('fifu_content_page'),
900
  'fifu_cdn_crop' => fifu_is_on('fifu_cdn_crop'),
901
  'fifu_cdn_social' => fifu_is_on('fifu_cdn_social'),
902
  'fifu_check' => fifu_is_on('fifu_check'),
903
+ 'fifu_confirm_delete_all' => FIFU_DELETE_ALL_URLS,
904
  'fifu_content' => fifu_is_on('fifu_content'),
905
  'fifu_content_cpt' => fifu_is_on('fifu_content_cpt'),
906
  'fifu_content_page' => fifu_is_on('fifu_content_page'),
admin/db.php CHANGED
@@ -22,7 +22,7 @@ class FifuDb {
22
  $this->term_taxonomy = $wpdb->prefix . 'term_taxonomy';
23
  $this->term_relationships = $wpdb->prefix . 'term_relationships';
24
  $this->author = 77777;
25
- $this->MAX_INSERT = 1000;
26
  $this->MAX_URL_LENGTH = 2048;
27
  $this->types = $this->get_types();
28
  }
@@ -1377,11 +1377,7 @@ class FifuDb {
1377
 
1378
  function delete_all() {
1379
  sleep(3);
1380
- if (fifu_is_on('fifu_confirm_delete_all') &&
1381
- fifu_is_on('fifu_run_delete_all') &&
1382
- get_option('fifu_confirm_delete_all_time') &&
1383
- get_option('fifu_run_delete_all_time') &&
1384
- FIFU_DELETE_ALL_URLS) {
1385
  $this->wpdb->get_results("
1386
  DELETE FROM " . $this->postmeta . "
1387
  WHERE meta_key LIKE 'fifu_%'"
22
  $this->term_taxonomy = $wpdb->prefix . 'term_taxonomy';
23
  $this->term_relationships = $wpdb->prefix . 'term_relationships';
24
  $this->author = 77777;
25
+ $this->MAX_INSERT = 1500;
26
  $this->MAX_URL_LENGTH = 2048;
27
  $this->types = $this->get_types();
28
  }
1377
 
1378
  function delete_all() {
1379
  sleep(3);
1380
+ if (fifu_is_on('fifu_run_delete_all') && get_option('fifu_run_delete_all_time') && FIFU_DELETE_ALL_URLS) {
 
 
 
 
1381
  $this->wpdb->get_results("
1382
  DELETE FROM " . $this->postmeta . "
1383
  WHERE meta_key LIKE 'fifu_%'"
admin/html/js/menu.js CHANGED
@@ -29,7 +29,6 @@ jQuery(function () {
29
  });
30
 
31
  jQuery("#tabs-top").tabs();
32
- jQuery("#fifu_input_spinner_cron_metadata").spinner({min: 1, step: 1});
33
  jQuery("#fifu_input_spinner_nth").spinner({min: 1});
34
  jQuery("#fifu_input_slider_speed").spinner({min: 0});
35
  jQuery("#fifu_input_slider_pause").spinner({min: 0});
@@ -192,7 +191,7 @@ function fifu_run_clean_js() {
192
  }
193
 
194
  function fifu_run_delete_all_js() {
195
- if (jQuery("#fifu_toggle_run_delete_all").attr('class') != 'toggleon' || jQuery("#fifu_toggle_confirm_delete_all").attr('class') != 'toggleon')
196
  return;
197
 
198
  fifu_run_clean_js();
29
  });
30
 
31
  jQuery("#tabs-top").tabs();
 
32
  jQuery("#fifu_input_spinner_nth").spinner({min: 1});
33
  jQuery("#fifu_input_slider_speed").spinner({min: 0});
34
  jQuery("#fifu_input_slider_pause").spinner({min: 0});
191
  }
192
 
193
  function fifu_run_delete_all_js() {
194
+ if (jQuery("#fifu_toggle_run_delete_all").attr('class') != 'toggleon')
195
  return;
196
 
197
  fifu_run_clean_js();
admin/html/menu.html CHANGED
@@ -1737,23 +1737,6 @@
1737
  on, off
1738
  </th>
1739
  </tr>
1740
- <tr class="color">
1741
- <th>
1742
- <?php $fifu['tab']['metadata']() ?>
1743
- </th>
1744
- <th>
1745
- <?php $fifu['title']['schedule']() ?>
1746
- </th>
1747
- <th>
1748
- <?php $fifu['schedule']['interval']() ?>
1749
- </th>
1750
- <th>
1751
- wp fifu schedule --interval &lt;integer&gt;
1752
- </th>
1753
- <th>
1754
- 1, 30, 60...
1755
- </th>
1756
- </tr>
1757
  <tr class="color">
1758
  <th>
1759
  <?php $fifu['tab']['performance']() ?>
@@ -1918,15 +1901,15 @@
1918
  on, off
1919
  </th>
1920
  </tr>
1921
- <tr class="color">
1922
  <th>
1923
- <?php $fifu['tab']['social']() ?>
1924
  </th>
1925
  <th>
1926
- <?php $fifu['title']['rss']() ?>
1927
  </th>
1928
  <th>
1929
- <?php $fifu['word']['width']() ?>
1930
  </th>
1931
  <th>
1932
  wp fifu rss --width &lt;integer&gt;
@@ -1934,7 +1917,7 @@
1934
  <th>
1935
  300, 600, 900...
1936
  </th>
1937
- </tr>
1938
  <tr class="color">
1939
  <th>
1940
  <?php $fifu['tab']['social']() ?>
@@ -3737,23 +3720,7 @@
3737
  <div class="fifu-pro"><a class="fifu-pro-link" href="https://fifu.app/" target="_blank" title="Unlock all PRO features"><span class="dashicons dashicons-lock fifu-pro-icon"></span></a></div>
3738
  <h2><?php $fifu['title']['schedule']() ?></h2>
3739
  <div class="greybox" id="grad2">
3740
- <?php $fifu['schedule']['desc']() ?><br><br>
3741
- <table style="text-align:left">
3742
- <tr>
3743
- <th>
3744
- <label for="fifu_input_spinner_cron_metadata"
3745
- placehold><?php $fifu['schedule']['interval']() ?></label>
3746
- </th>
3747
- <th>
3748
- <input id="fifu_input_spinner_cron_metadata"
3749
- name="fifu_input_spinner_cron_metadata"
3750
- size="4">
3751
- </th>
3752
- <th>
3753
- <input type="submit" value="<?php $fifu['button']['submit']() ?>" disabled>
3754
- </th>
3755
- </tr>
3756
- </table>
3757
  </div>
3758
  <br>
3759
  <input
@@ -3777,34 +3744,6 @@
3777
  <br>
3778
 
3779
  <table style="text-align:left">
3780
- <tr>
3781
- <th>
3782
- <form
3783
- id="fifu_form_confirm_delete_all"
3784
- action="javascript:void(0)"
3785
- method="post">
3786
- <?php wp_nonce_field(FIFU_ACTION_SETTINGS, 'nonce_fifu_form_confirm_delete_all'); ?>
3787
- <input
3788
- type="submit"
3789
- href="javascript:void(0)"
3790
- id="fifu_toggle_confirm_delete_all"
3791
- onclick="invert('confirm_delete_all')"
3792
- name="fifu_toggle_confirm_delete_all"
3793
- class="<?php echo $enable_confirm_delete_all; ?>"
3794
- value=""
3795
- style="display:block;border:none">
3796
-
3797
- <input
3798
- type="hidden"
3799
- id="fifu_input_confirm_delete_all"
3800
- name="fifu_input_confirm_delete_all"
3801
- value="" >
3802
- </form>
3803
- </th>
3804
- <th>
3805
- <?php $fifu['delete']['confirm']() ?>
3806
- </th>
3807
- </tr>
3808
  <tr>
3809
  <th>
3810
  <form
@@ -4760,8 +4699,8 @@
4760
  value=""
4761
  style="display:block;border:none">
4762
  </th>
4763
- <th>
4764
- <?php $fifu['word']['width']() ?>
4765
  <br>
4766
  <input
4767
  id="fifu_input_rss_width"
@@ -4772,7 +4711,7 @@
4772
  style="width:85px">
4773
  <br>
4774
  <input type="submit" value="<?php $fifu['button']['ok']() ?>" style="width:85px" disabled>
4775
- </th>
4776
  </tr>
4777
  </table>
4778
  </div>
@@ -4914,32 +4853,6 @@
4914
  </td>
4915
  <td><?php $fifu['jetpack']['toggle']['cdn']() ?></td>
4916
  </tr>
4917
- <tr>
4918
- <td>
4919
- <form
4920
- id="fifu_form_cdn_social"
4921
- action="javascript:void(0)"
4922
- method="post">
4923
- <?php wp_nonce_field(FIFU_ACTION_SETTINGS, 'nonce_fifu_form_cdn_social'); ?>
4924
- <input
4925
- type="submit"
4926
- href="javascript:void(0)"
4927
- id="fifu_toggle_cdn_social"
4928
- onclick="invert('cdn_social')"
4929
- name="fifu_toggle_cdn_social"
4930
- class="<?php echo $enable_cdn_social; ?>"
4931
- value=""
4932
- style="display:block;border:none">
4933
-
4934
- <input
4935
- type="hidden"
4936
- id="fifu_input_cdn_social"
4937
- name="fifu_input_cdn_social"
4938
- value="" >
4939
- </form>
4940
- </td>
4941
- <td><?php $fifu['jetpack']['toggle']['social']() ?></td>
4942
- </tr>
4943
  <tr>
4944
  <td>
4945
  <form
@@ -4992,6 +4905,32 @@
4992
  </td>
4993
  <td><?php $fifu['jetpack']['toggle']['content']() ?></td>
4994
  </tr>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4995
  </table>
4996
  </div>
4997
 
1737
  on, off
1738
  </th>
1739
  </tr>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1740
  <tr class="color">
1741
  <th>
1742
  <?php $fifu['tab']['performance']() ?>
1901
  on, off
1902
  </th>
1903
  </tr>
1904
+ <!-- <tr class="color">
1905
  <th>
1906
+ <?php $fifu['tab']['social']() ?>
1907
  </th>
1908
  <th>
1909
+ <?php $fifu['title']['rss']() ?>
1910
  </th>
1911
  <th>
1912
+ <?php $fifu['word']['width']() ?>
1913
  </th>
1914
  <th>
1915
  wp fifu rss --width &lt;integer&gt;
1917
  <th>
1918
  300, 600, 900...
1919
  </th>
1920
+ </tr> -->
1921
  <tr class="color">
1922
  <th>
1923
  <?php $fifu['tab']['social']() ?>
3720
  <div class="fifu-pro"><a class="fifu-pro-link" href="https://fifu.app/" target="_blank" title="Unlock all PRO features"><span class="dashicons dashicons-lock fifu-pro-icon"></span></a></div>
3721
  <h2><?php $fifu['title']['schedule']() ?></h2>
3722
  <div class="greybox" id="grad2">
3723
+ <?php $fifu['schedule']['desc']() ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3724
  </div>
3725
  <br>
3726
  <input
3744
  <br>
3745
 
3746
  <table style="text-align:left">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3747
  <tr>
3748
  <th>
3749
  <form
4699
  value=""
4700
  style="display:block;border:none">
4701
  </th>
4702
+ <!-- <th>
4703
+ <?php $fifu['word']['width']() ?>
4704
  <br>
4705
  <input
4706
  id="fifu_input_rss_width"
4711
  style="width:85px">
4712
  <br>
4713
  <input type="submit" value="<?php $fifu['button']['ok']() ?>" style="width:85px" disabled>
4714
+ </th> -->
4715
  </tr>
4716
  </table>
4717
  </div>
4853
  </td>
4854
  <td><?php $fifu['jetpack']['toggle']['cdn']() ?></td>
4855
  </tr>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4856
  <tr>
4857
  <td>
4858
  <form
4905
  </td>
4906
  <td><?php $fifu['jetpack']['toggle']['content']() ?></td>
4907
  </tr>
4908
+ <tr>
4909
+ <td>
4910
+ <form
4911
+ id="fifu_form_cdn_social"
4912
+ action="javascript:void(0)"
4913
+ method="post">
4914
+ <?php wp_nonce_field(FIFU_ACTION_SETTINGS, 'nonce_fifu_form_cdn_social'); ?>
4915
+ <input
4916
+ type="submit"
4917
+ href="javascript:void(0)"
4918
+ id="fifu_toggle_cdn_social"
4919
+ onclick="invert('cdn_social')"
4920
+ name="fifu_toggle_cdn_social"
4921
+ class="<?php echo $enable_cdn_social; ?>"
4922
+ value=""
4923
+ style="display:block;border:none">
4924
+
4925
+ <input
4926
+ type="hidden"
4927
+ id="fifu_input_cdn_social"
4928
+ name="fifu_input_cdn_social"
4929
+ value="" >
4930
+ </form>
4931
+ </td>
4932
+ <td><?php $fifu['jetpack']['toggle']['social']() ?></td>
4933
+ </tr>
4934
  </table>
4935
  </div>
4936
 
admin/html/support-data.html CHANGED
@@ -29,8 +29,6 @@ fifu_cdn_content:<?php echo $enable_cdn_content ?>;
29
  fifu_cdn_crop:<?php echo $enable_cdn_crop ?>;
30
  fifu_cdn_social:<?php echo $enable_cdn_social ?>;
31
  fifu_check:<?php echo $enable_check ?>;
32
- fifu_confirm_delete_all:<?php echo $enable_confirm_delete_all ?>;
33
- fifu_confirm_delete_all_time:<?php echo $enable_confirm_delete_all_time ?>;
34
  fifu_content:<?php echo $enable_content ?>;
35
  fifu_content_cpt:<?php echo $enable_content_cpt ?>;
36
  fifu_content_page:<?php echo $enable_content_page ?>;
29
  fifu_cdn_crop:<?php echo $enable_cdn_crop ?>;
30
  fifu_cdn_social:<?php echo $enable_cdn_social ?>;
31
  fifu_check:<?php echo $enable_check ?>;
 
 
32
  fifu_content:<?php echo $enable_content ?>;
33
  fifu_content_cpt:<?php echo $enable_content_cpt ?>;
34
  fifu_content_page:<?php echo $enable_content_page ?>;
admin/menu.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
 
3
- define('FIFU_SETTINGS', serialize(array('fifu_social', 'fifu_social_image_only', 'fifu_skip', 'fifu_lazy', 'fifu_photon', 'fifu_cdn_social', 'fifu_cdn_crop', 'fifu_cdn_content', 'fifu_reset', 'fifu_content', 'fifu_content_page', 'fifu_content_cpt', 'fifu_enable_default_url', 'fifu_spinner_nth', 'fifu_fake', 'fifu_default_url', 'fifu_default_cpt', 'fifu_wc_lbox', 'fifu_wc_zoom', 'fifu_hide_page', 'fifu_hide_post', 'fifu_hide_cpt', 'fifu_get_first', 'fifu_pop_first', 'fifu_ovw_first', 'fifu_query_strings', 'fifu_confirm_delete_all', 'fifu_run_delete_all', 'fifu_decode', 'fifu_check', 'fifu_grid_category', 'fifu_auto_alt', 'fifu_dynamic_alt', 'fifu_data_clean')));
4
  define('FIFU_ACTION_SETTINGS', '/wp-admin/admin.php?page=featured-image-from-url');
5
 
6
  define('FIFU_SLUG', 'featured-image-from-url');
@@ -125,8 +125,6 @@ function fifu_support_data() {
125
  $enable_pop_first = get_option('fifu_pop_first');
126
  $enable_ovw_first = get_option('fifu_ovw_first');
127
  $enable_query_strings = get_option('fifu_query_strings');
128
- $enable_confirm_delete_all = get_option('fifu_confirm_delete_all');
129
- $enable_confirm_delete_all_time = get_option('fifu_confirm_delete_all_time');
130
  $enable_run_delete_all = get_option('fifu_run_delete_all');
131
  $enable_run_delete_all_time = get_option('fifu_run_delete_all_time');
132
  $enable_decode = get_option('fifu_decode');
@@ -183,8 +181,6 @@ function fifu_get_menu_html() {
183
  $enable_pop_first = get_option('fifu_pop_first');
184
  $enable_ovw_first = get_option('fifu_ovw_first');
185
  $enable_query_strings = get_option('fifu_query_strings');
186
- $enable_confirm_delete_all = get_option('fifu_confirm_delete_all');
187
- $enable_confirm_delete_all_time = get_option('fifu_confirm_delete_all_time');
188
  $enable_run_delete_all = get_option('fifu_run_delete_all');
189
  $enable_run_delete_all_time = get_option('fifu_run_delete_all_time');
190
  $enable_decode = get_option('fifu_decode');
@@ -241,7 +237,7 @@ function fifu_get_setting($type) {
241
  $arrDefaultType = array('fifu_default_cpt');
242
  $arrOn = array('fifu_wc_zoom', 'fifu_wc_lbox');
243
  $arrOnNo = array('fifu_fake', 'fifu_social');
244
- $arrOffNo = array('fifu_data_clean', 'fifu_confirm_delete_all', 'fifu_run_delete_all', 'fifu_reset', 'fifu_social_image_only');
245
 
246
  if (get_option($type) === false) {
247
  if (in_array($type, $arrEmpty))
@@ -340,9 +336,6 @@ function fifu_update_menu_options() {
340
  if (fifu_is_valid_nonce('nonce_fifu_form_query_strings'))
341
  fifu_update_option('fifu_input_query_strings', 'fifu_query_strings');
342
 
343
- if (fifu_is_valid_nonce('nonce_fifu_form_confirm_delete_all'))
344
- fifu_update_option('fifu_input_confirm_delete_all', 'fifu_confirm_delete_all');
345
-
346
  if (fifu_is_valid_nonce('nonce_fifu_form_run_delete_all'))
347
  fifu_update_option('fifu_input_run_delete_all', 'fifu_run_delete_all');
348
 
@@ -364,10 +357,6 @@ function fifu_update_menu_options() {
364
  if (fifu_is_valid_nonce('nonce_fifu_form_data_clean'))
365
  fifu_update_option('fifu_input_data_clean', 'fifu_data_clean');
366
 
367
- // delete all confirm log
368
- if (fifu_is_on('fifu_confirm_delete_all'))
369
- update_option('fifu_confirm_delete_all_time', current_time('mysql'), 'no');
370
-
371
  // delete all run log
372
  if (fifu_is_on('fifu_run_delete_all'))
373
  update_option('fifu_run_delete_all_time', current_time('mysql'), 'no');
@@ -395,7 +384,7 @@ function fifu_update_option($input, $field) {
395
 
396
  $value = $_POST[$input];
397
 
398
- $arr_boolean = array('fifu_auto_alt', 'fifu_cdn_content', 'fifu_cdn_crop', 'fifu_cdn_social', 'fifu_check', 'fifu_confirm_delete_all', 'fifu_content', 'fifu_content_cpt', 'fifu_content_page', 'fifu_data_clean', 'fifu_decode', 'fifu_dynamic_alt', 'fifu_enable_default_url', 'fifu_fake', 'fifu_get_first', 'fifu_grid_category', 'fifu_hide_cpt', 'fifu_hide_page', 'fifu_hide_post', 'fifu_lazy', 'fifu_ovw_first', 'fifu_photon', 'fifu_pop_first', 'fifu_query_strings', 'fifu_reset', 'fifu_run_delete_all', 'fifu_social', 'fifu_social_image_only', 'fifu_wc_lbox', 'fifu_wc_zoom');
399
  if (in_array($field, $arr_boolean)) {
400
  if (in_array($value, array('on', 'off')))
401
  update_option($field, 'toggle' . $value);
1
  <?php
2
 
3
+ define('FIFU_SETTINGS', serialize(array('fifu_social', 'fifu_social_image_only', 'fifu_skip', 'fifu_lazy', 'fifu_photon', 'fifu_cdn_social', 'fifu_cdn_crop', 'fifu_cdn_content', 'fifu_reset', 'fifu_content', 'fifu_content_page', 'fifu_content_cpt', 'fifu_enable_default_url', 'fifu_spinner_nth', 'fifu_fake', 'fifu_default_url', 'fifu_default_cpt', 'fifu_wc_lbox', 'fifu_wc_zoom', 'fifu_hide_page', 'fifu_hide_post', 'fifu_hide_cpt', 'fifu_get_first', 'fifu_pop_first', 'fifu_ovw_first', 'fifu_query_strings', 'fifu_run_delete_all', 'fifu_decode', 'fifu_check', 'fifu_grid_category', 'fifu_auto_alt', 'fifu_dynamic_alt', 'fifu_data_clean')));
4
  define('FIFU_ACTION_SETTINGS', '/wp-admin/admin.php?page=featured-image-from-url');
5
 
6
  define('FIFU_SLUG', 'featured-image-from-url');
125
  $enable_pop_first = get_option('fifu_pop_first');
126
  $enable_ovw_first = get_option('fifu_ovw_first');
127
  $enable_query_strings = get_option('fifu_query_strings');
 
 
128
  $enable_run_delete_all = get_option('fifu_run_delete_all');
129
  $enable_run_delete_all_time = get_option('fifu_run_delete_all_time');
130
  $enable_decode = get_option('fifu_decode');
181
  $enable_pop_first = get_option('fifu_pop_first');
182
  $enable_ovw_first = get_option('fifu_ovw_first');
183
  $enable_query_strings = get_option('fifu_query_strings');
 
 
184
  $enable_run_delete_all = get_option('fifu_run_delete_all');
185
  $enable_run_delete_all_time = get_option('fifu_run_delete_all_time');
186
  $enable_decode = get_option('fifu_decode');
237
  $arrDefaultType = array('fifu_default_cpt');
238
  $arrOn = array('fifu_wc_zoom', 'fifu_wc_lbox');
239
  $arrOnNo = array('fifu_fake', 'fifu_social');
240
+ $arrOffNo = array('fifu_data_clean', 'fifu_run_delete_all', 'fifu_reset', 'fifu_social_image_only');
241
 
242
  if (get_option($type) === false) {
243
  if (in_array($type, $arrEmpty))
336
  if (fifu_is_valid_nonce('nonce_fifu_form_query_strings'))
337
  fifu_update_option('fifu_input_query_strings', 'fifu_query_strings');
338
 
 
 
 
339
  if (fifu_is_valid_nonce('nonce_fifu_form_run_delete_all'))
340
  fifu_update_option('fifu_input_run_delete_all', 'fifu_run_delete_all');
341
 
357
  if (fifu_is_valid_nonce('nonce_fifu_form_data_clean'))
358
  fifu_update_option('fifu_input_data_clean', 'fifu_data_clean');
359
 
 
 
 
 
360
  // delete all run log
361
  if (fifu_is_on('fifu_run_delete_all'))
362
  update_option('fifu_run_delete_all_time', current_time('mysql'), 'no');
384
 
385
  $value = $_POST[$input];
386
 
387
+ $arr_boolean = array('fifu_auto_alt', 'fifu_cdn_content', 'fifu_cdn_crop', 'fifu_cdn_social', 'fifu_check', 'fifu_content', 'fifu_content_cpt', 'fifu_content_page', 'fifu_data_clean', 'fifu_decode', 'fifu_dynamic_alt', 'fifu_enable_default_url', 'fifu_fake', 'fifu_get_first', 'fifu_grid_category', 'fifu_hide_cpt', 'fifu_hide_page', 'fifu_hide_post', 'fifu_lazy', 'fifu_ovw_first', 'fifu_photon', 'fifu_pop_first', 'fifu_query_strings', 'fifu_reset', 'fifu_run_delete_all', 'fifu_social', 'fifu_social_image_only', 'fifu_wc_lbox', 'fifu_wc_zoom');
388
  if (in_array($field, $arr_boolean)) {
389
  if (in_array($value, array('on', 'off')))
390
  update_option($field, 'toggle' . $value);
admin/meta-box.php CHANGED
@@ -3,7 +3,7 @@
3
  add_action('add_meta_boxes', 'fifu_insert_meta_box');
4
 
5
  function fifu_insert_meta_box() {
6
- if (fifu_is_web_story())
7
  return;
8
 
9
  $fifu = fifu_get_strings_meta_box_php();
3
  add_action('add_meta_boxes', 'fifu_insert_meta_box');
4
 
5
  function fifu_insert_meta_box() {
6
+ if (fifu_is_web_story() || fifu_is_search_filter_pro())
7
  return;
8
 
9
  $fifu = fifu_get_strings_meta_box_php();
admin/strings.php CHANGED
@@ -757,7 +757,7 @@ function fifu_get_strings_settings() {
757
 
758
  // replace
759
  $fifu['replace']['desc'] = function () {
760
- _e("Define the URL of an image to be shown in case of image not found error.", FIFU_SLUG);
761
  };
762
 
763
  // default
@@ -935,7 +935,7 @@ function fifu_get_strings_settings() {
935
 
936
  // clean
937
  $fifu['clean']['desc'] = function () {
938
- _e("Clean the Image Metadata generated by FIFU, but not the URLs. This option might be necessary if you intend to deactivate the plugin and use only local featured images again.", FIFU_SLUG);
939
  };
940
  $fifu['clean']['disabled'] = function () {
941
  _e("it will be automatically disabled when finished", FIFU_SLUG);
@@ -951,18 +951,12 @@ function fifu_get_strings_settings() {
951
 
952
  // schedule
953
  $fifu['schedule']['desc'] = function () {
954
- _e("If you are setting the image URLs in a nonstandard way, the images probably won't be shown at front-end because some extra metadata is required. Here you can schedule an event to run each N minutes and check if there is some image URL without metadata and create that. The FIFU keys are listed on REST API > Custom Fields.", FIFU_SLUG);
955
- };
956
- $fifu['schedule']['interval'] = function () {
957
- _e("Interval (minutes)", FIFU_SLUG);
958
  };
959
 
960
  // delete
961
  $fifu['delete']['important'] = function () {
962
- _e("this plugin doesn't save images in the media library. It means that enabling the two toggles below all post types that have an external featured image will no longer have any featured image. And you can't undo this action later. This also applies to FIFU galleries, videos, sliders and shortcodes.", FIFU_SLUG);
963
- };
964
- $fifu['delete']['confirm'] = function () {
965
- _e("confirm that you are ready to lose your featured images", FIFU_SLUG);
966
  };
967
  $fifu['delete']['now'] = function () {
968
  _e("delete all your URLs now", FIFU_SLUG);
@@ -2207,4 +2201,3 @@ function fifu_get_strings_uninstall() {
2207
 
2208
  return $fifu;
2209
  }
2210
-
757
 
758
  // replace
759
  $fifu['replace']['desc'] = function () {
760
+ _e("Define the URL of an image to be displayed in case of image not found error.", FIFU_SLUG);
761
  };
762
 
763
  // default
935
 
936
  // clean
937
  $fifu['clean']['desc'] = function () {
938
+ _e("Clean the Image Metadata generated by FIFU, but not the URLs. Run it if you intend to deactivate the plugin and use only local featured images again.", FIFU_SLUG);
939
  };
940
  $fifu['clean']['disabled'] = function () {
941
  _e("it will be automatically disabled when finished", FIFU_SLUG);
951
 
952
  // schedule
953
  $fifu['schedule']['desc'] = function () {
954
+ _e("If you are setting the image URLs in a nonstandard way, the images probably won't be displayed for the visitors because extra metadata is required. Here you schedule an event to run every minute and check if there are image URLs without metadata and create that.", FIFU_SLUG);
 
 
 
955
  };
956
 
957
  // delete
958
  $fifu['delete']['important'] = function () {
959
+ _e("this plugin doesn't save images in the media library. It means that enabling the toggle below all post types that have an external featured image will no longer have any featured image. And you can't undo this action later. This also applies to FIFU galleries, videos, sliders and shortcodes.", FIFU_SLUG);
 
 
 
960
  };
961
  $fifu['delete']['now'] = function () {
962
  _e("delete all your URLs now", FIFU_SLUG);
2201
 
2202
  return $fifu;
2203
  }
 
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/audio as featured image/video/audio of a post or WooCommerce product.
7
- * Version: 4.1.7
8
  * Author: fifu.app
9
  * Author URI: https://fifu.app/
10
  * WC requires at least: 4.0
11
- * WC tested up to: 7.0.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/audio as featured image/video/audio of a post or WooCommerce product.
7
+ * Version: 4.1.8
8
  * Author: fifu.app
9
  * Author URI: https://fifu.app/
10
  * WC requires at least: 4.0
11
+ * WC tested up to: 7.0.1
12
  * Text Domain: featured-image-from-url
13
  * License: GPLv3
14
  * License URI: https://www.gnu.org/licenses/gpl-3.0.html
includes/html/js/uninstall.js CHANGED
@@ -81,7 +81,7 @@ jQuery(document).ready(function ($) {
81
  });
82
 
83
  // activating fifu pro
84
- jQuery('a#activate-fifu-premium').click(function (e) {
85
  e.preventDefault();
86
 
87
  jQuery('div#wpwrap').block({message: '', css: {backgroundColor: 'none', border: 'none', color: 'white'}});
@@ -95,7 +95,7 @@ jQuery(document).ready(function ($) {
95
  xhr.setRequestHeader('X-WP-Nonce', fifuUninstallVars.nonce);
96
  },
97
  success: function (data) {
98
- href = jQuery('a#activate-fifu-premium').attr('href');
99
  window.location.href = href;
100
  },
101
  error: function (jqXHR, textStatus, errorThrown) {
81
  });
82
 
83
  // activating fifu pro
84
+ jQuery('a#activate-featured-image-from-url-fifu-premium').click(function (e) {
85
  e.preventDefault();
86
 
87
  jQuery('div#wpwrap').block({message: '', css: {backgroundColor: 'none', border: 'none', color: 'white'}});
95
  xhr.setRequestHeader('X-WP-Nonce', fifuUninstallVars.nonce);
96
  },
97
  success: function (data) {
98
+ href = jQuery('a#activate-featured-image-from-url-fifu-premium').attr('href');
99
  window.location.href = href;
100
  },
101
  error: function (jqXHR, textStatus, errorThrown) {
includes/util.php CHANGED
@@ -224,3 +224,13 @@ function fifu_is_web_story() {
224
  return false;
225
  }
226
 
 
 
 
 
 
 
 
 
 
 
224
  return false;
225
  }
226
 
227
+ // plugin: filter-search-pro
228
+
229
+ function fifu_is_search_filter_pro() {
230
+ if (function_exists('get_current_screen')) {
231
+ $screen = get_current_screen();
232
+ return (isset($screen->post_type) && strpos($screen->post_type, 'search-filter') !== false);
233
+ }
234
+ return false;
235
+ }
236
+
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.1
7
- Stable tag: 4.1.7
8
  License: GPLv3
9
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -260,20 +260,20 @@ Featured Image, Figurë e Zgjedhur, Image mise en avant, Uitgelichte afbeelding,
260
 
261
  == Changelog ==
262
 
 
 
 
263
  = 4.1.7 =
264
  * Enhancement: deactivate itself when the PRO version is activated; fix: Lazy Load (conflict with Oxygen plugin); deprecated: Metadata > Database.
265
 
266
  = 4.1.6 =
267
  * New: feedback form on plugin deactivation; enhancement: Clean Metadata (option added to the new deactivation lightbox); enhancement: WP All Import (more documentation added); fix: Auto set featured media from post content (unduly overwriting local featured images); fix: Social Tags (it was not getting the largest image size for local images); deprecated: Quick Edit Column > height.
268
 
269
- = 4.1.5 =
270
- * New: FIFU Shortcodes > Edition forms; enhancement: Auto set featured image using post title and search engine (can limit the search to a list of sites); deprecated: Image Validation; fix: Lazy Load (JS error).
271
-
272
  = others =
273
  * [more](https://fifu.app/changelog)
274
 
275
 
276
  == Upgrade Notice ==
277
 
278
- = 4.1.7 =
279
- * Enhancement: deactivate itself when the PRO version is activated; fix: Lazy Load (conflict with Oxygen plugin); deprecated: Metadata > Database.
4
  Tags: featured, image, url, video, woocommerce
5
  Requires at least: 5.3
6
  Tested up to: 6.1
7
+ Stable tag: 4.1.8
8
  License: GPLv3
9
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
10
 
260
 
261
  == Changelog ==
262
 
263
+ = 4.1.8 =
264
+ * Enhancement: Page Redirection (works with local images now); fix: conflict with Search Filter Pro plugin; deprecated: Media RSS Tags > Width; deprecated: Schedule Metadata Generation > Interval; deprecated: Delete All URLs > Confirm.
265
+
266
  = 4.1.7 =
267
  * Enhancement: deactivate itself when the PRO version is activated; fix: Lazy Load (conflict with Oxygen plugin); deprecated: Metadata > Database.
268
 
269
  = 4.1.6 =
270
  * New: feedback form on plugin deactivation; enhancement: Clean Metadata (option added to the new deactivation lightbox); enhancement: WP All Import (more documentation added); fix: Auto set featured media from post content (unduly overwriting local featured images); fix: Social Tags (it was not getting the largest image size for local images); deprecated: Quick Edit Column > height.
271
 
 
 
 
272
  = others =
273
  * [more](https://fifu.app/changelog)
274
 
275
 
276
  == Upgrade Notice ==
277
 
278
+ = 4.1.8 =
279
+ * Enhancement: Page Redirection (works with local images now); fix: conflict with Search Filter Pro plugin; deprecated: Media RSS Tags > Width; deprecated: Schedule Metadata Generation > Interval; deprecated: Delete All URLs > Confirm.