Featured Image From URL - Version 3.8.8

Version Description

  • New option: Auto set featured media from post content (option to dont get URL from post content can be checked/unchecked by default); enhancement: Quick Edit column integrated with CDN + Optimized Thumbnails; fix: conflict with Yoast Duplicate Post plugin (update of the duplicated post was changing the image of the original one); fix: PHP Notice (Undefined offset).
Download this release

Release Info

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

Code changes from version 3.8.7 to 3.8.8

admin/cli-commands.php CHANGED
@@ -64,6 +64,17 @@ class fifu_cli extends WP_CLI_Command {
64
  }
65
  return;
66
  }
 
 
 
 
 
 
 
 
 
 
 
67
  switch ($args[0]) {
68
  case 'on':
69
  update_option('fifu_get_first', 'toggleon', 'no'); // toggle
64
  }
65
  return;
66
  }
67
+ if (!empty($assoc_args['check'])) {
68
+ switch ($args[0]) {
69
+ case 'on':
70
+ update_option('fifu_check', 'toggleon', 'no'); // toggle
71
+ break;
72
+ case 'off':
73
+ update_option('fifu_check', 'toggleoff', 'no'); // toggle
74
+ break;
75
+ }
76
+ return;
77
+ }
78
  switch ($args[0]) {
79
  case 'on':
80
  update_option('fifu_get_first', 'toggleon', 'no'); // toggle
admin/column.php CHANGED
@@ -52,12 +52,15 @@ function fifu_ctgr_column_content($internal_image, $column, $term_id) {
52
 
53
  $is_ctgr = true;
54
  $post_id = $term_id;
55
- $url = get_term_meta($term_id, 'fifu_image_url', true);
56
- if ($url == '') {
 
 
57
  $thumb_id = get_term_meta($term_id, 'thumbnail_id', true);
58
- $url = wp_get_attachment_url($thumb_id);
59
  $border = 'border-color: #ca4a1f !important; border: 2px; border-style: dashed;';
60
  }
 
61
  include 'html/column.html';
62
  } else
63
  echo $internal_image;
@@ -70,11 +73,14 @@ function fifu_column_content($column, $post_id) {
70
  $width = $height * 1.5;
71
 
72
  $is_ctgr = false;
73
- $url = fifu_main_image_url($post_id);
74
- if ($url == '') {
75
- $url = wp_get_attachment_url(get_post_thumbnail_id());
 
 
76
  $border = 'border-color: #ca4a1f !important; border: 2px; border-style: dashed;';
77
  }
 
78
  include 'html/column.html';
79
  }
80
  }
52
 
53
  $is_ctgr = true;
54
  $post_id = $term_id;
55
+ $image_url = null;
56
+
57
+ $image_url = get_term_meta($term_id, 'fifu_image_url', true);
58
+ if ($image_url == '') {
59
  $thumb_id = get_term_meta($term_id, 'thumbnail_id', true);
60
+ $image_url = wp_get_attachment_url($thumb_id);
61
  $border = 'border-color: #ca4a1f !important; border: 2px; border-style: dashed;';
62
  }
63
+ $url = fifu_is_on('fifu_photon') ? fifu_jetpack_photon_url($image_url, fifu_get_photon_args($width, $height)) : $image_url;
64
  include 'html/column.html';
65
  } else
66
  echo $internal_image;
73
  $width = $height * 1.5;
74
 
75
  $is_ctgr = false;
76
+ $image_url = null;
77
+
78
+ $image_url = fifu_main_image_url($post_id);
79
+ if ($image_url == '') {
80
+ $image_url = wp_get_attachment_url(get_post_thumbnail_id());
81
  $border = 'border-color: #ca4a1f !important; border: 2px; border-style: dashed;';
82
  }
83
+ $url = fifu_is_on('fifu_photon') ? fifu_jetpack_photon_url($image_url, fifu_get_photon_args($width, $height)) : $image_url;
84
  include 'html/column.html';
85
  }
86
  }
admin/html/column.html CHANGED
@@ -2,5 +2,6 @@
2
  class="fifu-quick"
3
  post-id="<?php echo $post_id ?>"
4
  is-ctgr="<?php echo $is_ctgr ?>"
 
5
  style="height: <?php echo $height ?>px; width: <?php echo $width ?>px; background:url('<?php echo $url ?>') no-repeat center center; background-size:cover; <?php echo $border ?>; cursor:pointer;">
6
  </div>
2
  class="fifu-quick"
3
  post-id="<?php echo $post_id ?>"
4
  is-ctgr="<?php echo $is_ctgr ?>"
5
+ image-url="<?php echo $image_url ?>"
6
  style="height: <?php echo $height ?>px; width: <?php echo $width ?>px; background:url('<?php echo $url ?>') no-repeat center center; background-size:cover; <?php echo $border ?>; cursor:pointer;">
7
  </div>
admin/html/js/column.js CHANGED
@@ -6,9 +6,9 @@ function fifu_open_quick_lightbox() {
6
  jQuery("div.fifu-quick").on('click', function (evt) {
7
  evt.stopImmediatePropagation();
8
  post_id = jQuery(this).attr('post-id');
 
9
  is_ctgr = jQuery(this).attr('is-ctgr');
10
- background = jQuery(this).css('background-image');
11
- url = (background ? background.split('"')[1] : null);
12
  url = (url == 'about:invalid' ? '' : url);
13
  media = `<img id="fifu-quick-preview" src="${url}" post-id="${post_id}" style="max-height:600px; width:100%;">`;
14
  box = `
6
  jQuery("div.fifu-quick").on('click', function (evt) {
7
  evt.stopImmediatePropagation();
8
  post_id = jQuery(this).attr('post-id');
9
+ image_url = jQuery(this).attr('image-url');
10
  is_ctgr = jQuery(this).attr('is-ctgr');
11
+ url = image_url;
 
12
  url = (url == 'about:invalid' ? '' : url);
13
  media = `<img id="fifu-quick-preview" src="${url}" post-id="${post_id}" style="max-height:600px; width:100%;">`;
14
  box = `
admin/html/menu.html CHANGED
@@ -262,6 +262,23 @@
262
  on, off
263
  </th>
264
  </tr>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
265
  <tr class="color">
266
  <th>
267
  <?php $fifu['tab']['auto']() ?>
@@ -2305,6 +2322,33 @@
2305
  <?php $fifu['html']['decode']() ?>
2306
  </th>
2307
  </tr>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2308
  </table>
2309
  </div>
2310
 
262
  on, off
263
  </th>
264
  </tr>
265
+ <tr class="color">
266
+ <th>
267
+ <?php $fifu['tab']['auto']() ?>
268
+ </th>
269
+ <th>
270
+ <?php $fifu['title']['html']() ?>
271
+ </th>
272
+ <th>
273
+ <?php $fifu['html']['check']() ?>
274
+ </th>
275
+ <th>
276
+ wp fifu content --check &lt;toggle&gt;
277
+ </th>
278
+ <th>
279
+ on, off
280
+ </th>
281
+ </tr>
282
  <tr class="color">
283
  <th>
284
  <?php $fifu['tab']['auto']() ?>
2322
  <?php $fifu['html']['decode']() ?>
2323
  </th>
2324
  </tr>
2325
+ <tr>
2326
+ <th>
2327
+ <form
2328
+ id="fifu_form_check"
2329
+ action="javascript:void(0)"
2330
+ method="post">
2331
+ <input
2332
+ type="submit"
2333
+ href="javascript:void(0)"
2334
+ id="fifu_toggle_check"
2335
+ onclick="invert('check')"
2336
+ name="fifu_toggle_check"
2337
+ class="<?php echo $enable_check; ?>"
2338
+ value=""
2339
+ style="display:block;border:none">
2340
+
2341
+ <input
2342
+ type="hidden"
2343
+ id="fifu_input_check"
2344
+ name="fifu_input_check"
2345
+ value="" >
2346
+ </form>
2347
+ </th>
2348
+ <th>
2349
+ <?php $fifu['html']['check']() ?>
2350
+ </th>
2351
+ </tr>
2352
  </table>
2353
  </div>
2354
 
admin/html/meta-box.html CHANGED
@@ -5,7 +5,7 @@
5
  <table style="<?php echo $show_ignore ?>">
6
  <tr>
7
  <th style="width:5px">
8
- <input type="checkbox" name="fifu_ignore_auto_set" id="fifu_ignore_auto_set" checked>
9
  </th>
10
  <th>
11
  <label for="fifu_ignore_auto_set" style="font-weight:normal"><?php $fifu['image']['ignore']() ?></label>
5
  <table style="<?php echo $show_ignore ?>">
6
  <tr>
7
  <th style="width:5px">
8
+ <input type="checkbox" name="fifu_ignore_auto_set" id="fifu_ignore_auto_set" <?php echo $check_ignore ?>>
9
  </th>
10
  <th>
11
  <label for="fifu_ignore_auto_set" style="font-weight:normal"><?php $fifu['image']['ignore']() ?></label>
admin/html/support-data.html CHANGED
@@ -26,6 +26,7 @@ fifu_auto_alt:<?php echo $enable_auto_alt ?>;
26
  fifu_cdn_content:<?php echo $enable_cdn_content ?>;
27
  fifu_cdn_crop:<?php echo $enable_cdn_crop ?>;
28
  fifu_cdn_social:<?php echo $enable_cdn_social ?>;
 
29
  fifu_column_height:<?php echo $column_height ?>;
30
  fifu_confirm_delete_all:<?php echo $enable_confirm_delete_all ?>;
31
  fifu_confirm_delete_all_time:<?php echo $enable_confirm_delete_all_time ?>;
26
  fifu_cdn_content:<?php echo $enable_cdn_content ?>;
27
  fifu_cdn_crop:<?php echo $enable_cdn_crop ?>;
28
  fifu_cdn_social:<?php echo $enable_cdn_social ?>;
29
+ fifu_check:<?php echo $enable_check ?>;
30
  fifu_column_height:<?php echo $column_height ?>;
31
  fifu_confirm_delete_all:<?php echo $enable_confirm_delete_all ?>;
32
  fifu_confirm_delete_all_time:<?php echo $enable_confirm_delete_all_time ?>;
admin/html/troubleshooting.html CHANGED
@@ -9,6 +9,19 @@
9
  <div id="tabs-top" style="float:left">
10
  <ul>
11
  <div id="tabs-t" style="padding:1em 1.4em; position: relative; top: -25px;">
 
 
 
 
 
 
 
 
 
 
 
 
 
12
  <div class="box">
13
  <table>
14
  <tr>
9
  <div id="tabs-top" style="float:left">
10
  <ul>
11
  <div id="tabs-t" style="padding:1em 1.4em; position: relative; top: -25px;">
12
+ <div class="box">
13
+ <table>
14
+ <tr>
15
+ <td style="border-bottom:none">2022-03-05</td>
16
+ <td style="border-bottom:none"><h3>Gutentor - Gutenberg Blocks - Page Builder for Gutenberg Editor</h3></td>
17
+ <td style="border-bottom:none">plugin</td>
18
+ </tr>
19
+ </table>
20
+ <div class="greybox" style="position: relative; top: -10px">
21
+ Fixing "This block has encountered an error and cannot be previewed":<br>
22
+ 1) run "FIFU Settings > Metadata > Save Image Dimensions"
23
+ </div>
24
+ </div>
25
  <div class="box">
26
  <table>
27
  <tr>
admin/menu.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
 
3
- define('FIFU_SETTINGS', serialize(array('fifu_social', 'fifu_social_image_only', '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_db', '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_column_height', 'fifu_decode', 'fifu_grid_category', 'fifu_auto_alt', 'fifu_dynamic_alt', 'fifu_data_clean')));
4
 
5
  define('FIFU_SLUG', 'featured-image-from-url');
6
 
@@ -119,6 +119,7 @@ function fifu_support_data() {
119
  $enable_run_delete_all_time = get_option('fifu_run_delete_all_time');
120
  $column_height = get_option('fifu_column_height');
121
  $enable_decode = get_option('fifu_decode');
 
122
  $enable_grid_category = get_option('fifu_grid_category');
123
  $enable_auto_alt = get_option('fifu_auto_alt');
124
  $enable_dynamic_alt = get_option('fifu_dynamic_alt');
@@ -177,6 +178,7 @@ function fifu_get_menu_html() {
177
  $enable_run_delete_all_time = get_option('fifu_run_delete_all_time');
178
  $column_height = get_option('fifu_column_height');
179
  $enable_decode = get_option('fifu_decode');
 
180
  $enable_grid_category = get_option('fifu_grid_category');
181
  $enable_auto_alt = get_option('fifu_auto_alt');
182
  $enable_dynamic_alt = get_option('fifu_dynamic_alt');
@@ -283,6 +285,7 @@ function fifu_update_menu_options() {
283
  fifu_update_option('fifu_input_run_delete_all', 'fifu_run_delete_all');
284
  fifu_update_option('fifu_input_column_height', 'fifu_column_height');
285
  fifu_update_option('fifu_input_decode', 'fifu_decode');
 
286
  fifu_update_option('fifu_input_grid_category', 'fifu_grid_category');
287
  fifu_update_option('fifu_input_auto_alt', 'fifu_auto_alt');
288
  fifu_update_option('fifu_input_dynamic_alt', 'fifu_dynamic_alt');
1
  <?php
2
 
3
+ define('FIFU_SETTINGS', serialize(array('fifu_social', 'fifu_social_image_only', '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_db', '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_column_height', 'fifu_decode', 'fifu_check', 'fifu_grid_category', 'fifu_auto_alt', 'fifu_dynamic_alt', 'fifu_data_clean')));
4
 
5
  define('FIFU_SLUG', 'featured-image-from-url');
6
 
119
  $enable_run_delete_all_time = get_option('fifu_run_delete_all_time');
120
  $column_height = get_option('fifu_column_height');
121
  $enable_decode = get_option('fifu_decode');
122
+ $enable_check = get_option('fifu_check');
123
  $enable_grid_category = get_option('fifu_grid_category');
124
  $enable_auto_alt = get_option('fifu_auto_alt');
125
  $enable_dynamic_alt = get_option('fifu_dynamic_alt');
178
  $enable_run_delete_all_time = get_option('fifu_run_delete_all_time');
179
  $column_height = get_option('fifu_column_height');
180
  $enable_decode = get_option('fifu_decode');
181
+ $enable_check = get_option('fifu_check');
182
  $enable_grid_category = get_option('fifu_grid_category');
183
  $enable_auto_alt = get_option('fifu_auto_alt');
184
  $enable_dynamic_alt = get_option('fifu_dynamic_alt');
285
  fifu_update_option('fifu_input_run_delete_all', 'fifu_run_delete_all');
286
  fifu_update_option('fifu_input_column_height', 'fifu_column_height');
287
  fifu_update_option('fifu_input_decode', 'fifu_decode');
288
+ fifu_update_option('fifu_input_check', 'fifu_check');
289
  fifu_update_option('fifu_input_grid_category', 'fifu_grid_category');
290
  fifu_update_option('fifu_input_auto_alt', 'fifu_auto_alt');
291
  fifu_update_option('fifu_input_dynamic_alt', 'fifu_dynamic_alt');
admin/meta-box.php CHANGED
@@ -93,6 +93,8 @@ function fifu_show_elements($post) {
93
 
94
  $show_ignore = fifu_is_on('fifu_get_first') || fifu_is_on('fifu_pop_first') || fifu_is_on('fifu_ovw_first') ? '' : 'display:none;';
95
 
 
 
96
  $fifu = fifu_get_strings_meta_box();
97
  include 'html/meta-box.html';
98
  }
@@ -329,3 +331,24 @@ function fifu_import_end() {
329
  fifu_db_insert_attachment_category();
330
  }
331
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
93
 
94
  $show_ignore = fifu_is_on('fifu_get_first') || fifu_is_on('fifu_pop_first') || fifu_is_on('fifu_ovw_first') ? '' : 'display:none;';
95
 
96
+ $check_ignore = fifu_is_on('fifu_check') ? 'checked' : '';
97
+
98
  $fifu = fifu_get_strings_meta_box();
99
  include 'html/meta-box.html';
100
  }
331
  fifu_db_insert_attachment_category();
332
  }
333
 
334
+ /* plugin: yoast duplicate post */
335
+
336
+ function fifu_duplicate_post_meta_keys_filter($meta_keys) {
337
+ $remove_thumbnail = false;
338
+ $thumbnail_id = null;
339
+
340
+ for ($i = 0; $i < count($meta_keys); $i++) {
341
+ if (fifu_starts_with($meta_keys[$i], 'fifu'))
342
+ $remove_thumbnail = true;
343
+ elseif ($meta_keys[$i] == '_thumbnail_id')
344
+ $thumbnail_id = $i;
345
+ }
346
+
347
+ if ($remove_thumbnail)
348
+ unset($meta_keys[$thumbnail_id]);
349
+
350
+ return $meta_keys;
351
+ }
352
+
353
+ add_filter('duplicate_post_meta_keys_filter', 'fifu_duplicate_post_meta_keys_filter');
354
+
admin/strings.php CHANGED
@@ -929,6 +929,9 @@ function fifu_get_strings_settings() {
929
  $fifu['html']['decode'] = function() {
930
  _e("decode HTML entities", FIFU_SLUG);
931
  };
 
 
 
932
 
933
  // all
934
  $fifu['all']['desc'] = function() {
929
  $fifu['html']['decode'] = function() {
930
  _e("decode HTML entities", FIFU_SLUG);
931
  };
932
+ $fifu['html']['check'] = function() {
933
+ _e("check \"don't get URL from post content\" option, in the post editor, by default", FIFU_SLUG);
934
+ };
935
 
936
  // all
937
  $fifu['all']['desc'] = function() {
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: 3.8.7
8
  * Author: fifu.app
9
  * Author URI: https://fifu.app/
10
  * WC requires at least: 4.0
11
- * WC tested up to: 6.2.1
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: 3.8.8
8
  * Author: fifu.app
9
  * Author URI: https://fifu.app/
10
  * WC requires at least: 4.0
11
+ * WC tested up to: 6.3.0
12
  * Text Domain: featured-image-from-url
13
  * License: GPLv3
14
  * License URI: https://www.gnu.org/licenses/gpl-3.0.html
includes/attachment.php CHANGED
@@ -260,7 +260,7 @@ function fifu_callback($buffer) {
260
  $imgList = array();
261
  preg_match_all('/<[^>]*background-image[^>]*>/', $buffer, $imgList);
262
  foreach ($imgList[0] as $imgItem) {
263
- if (strpos($imgItem, 'style=') === false)
264
  continue;
265
 
266
  $mainDelimiter = substr(explode('style=', $imgItem)[1], 0, 1);
@@ -348,3 +348,19 @@ function fifu_save_query() {
348
  fifu_api_query($dataset);
349
  }
350
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
260
  $imgList = array();
261
  preg_match_all('/<[^>]*background-image[^>]*>/', $buffer, $imgList);
262
  foreach ($imgList[0] as $imgItem) {
263
+ if (strpos($imgItem, 'style=') === false || strpos($imgItem, 'url(') === false)
264
  continue;
265
 
266
  $mainDelimiter = substr(explode('style=', $imgItem)[1], 0, 1);
348
  fifu_api_query($dataset);
349
  }
350
 
351
+ function fifu_get_photon_args($w, $h) {
352
+ $args = array();
353
+ if ($w > 0 && $h > 0) {
354
+ $args['resize'] = $w . ',' . $h;
355
+ } elseif ($w > 0) {
356
+ $args['resize'] = $w;
357
+ $args['w'] = $w;
358
+ } elseif ($h > 0) {
359
+ $args['resize'] = $h;
360
+ $args['h'] = $h;
361
+ } else {
362
+ $args = null;
363
+ }
364
+ return $args;
365
+ }
366
+
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: 5.9.1
7
- Stable tag: 3.8.7
8
  License: GPLv3
9
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -227,20 +227,20 @@ Featured Image, Figurë e Zgjedhur, Image mise en avant, Uitgelichte afbeelding,
227
 
228
  == Changelog ==
229
 
 
 
 
230
  = 3.8.7 =
231
  * Enhancement: REST API (integration with batch category); enhancement: don't get URL from post content (checked by default).
232
 
233
  = 3.8.6 =
234
  * Fix: Auto set featured media from post content > hide the image/video from content.
235
 
236
- = 3.8.5 =
237
- * New feature: Page Redirection; enhancement: integration with CyberSEO plugin; enhancement: integration functions return boolean now.
238
-
239
  = others =
240
  * [more](https://fifu.app/changelog)
241
 
242
 
243
  == Upgrade Notice ==
244
 
245
- = 3.8.7 =
246
- * Enhancement: REST API (integration with batch category); enhancement: don't get URL from post content (checked by default).
4
  Tags: featured, image, url, video, woocommerce
5
  Requires at least: 5.3
6
  Tested up to: 5.9.1
7
+ Stable tag: 3.8.8
8
  License: GPLv3
9
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
10
 
227
 
228
  == Changelog ==
229
 
230
+ = 3.8.8 =
231
+ * New option: Auto set featured media from post content (option to dont get URL from post content can be checked/unchecked by default); enhancement: Quick Edit column integrated with CDN + Optimized Thumbnails; fix: conflict with Yoast Duplicate Post plugin (update of the duplicated post was changing the image of the original one); fix: PHP Notice (Undefined offset).
232
+
233
  = 3.8.7 =
234
  * Enhancement: REST API (integration with batch category); enhancement: don't get URL from post content (checked by default).
235
 
236
  = 3.8.6 =
237
  * Fix: Auto set featured media from post content > hide the image/video from content.
238
 
 
 
 
239
  = others =
240
  * [more](https://fifu.app/changelog)
241
 
242
 
243
  == Upgrade Notice ==
244
 
245
+ = 3.8.8 =
246
+ * New option: Auto set featured media from post content (option to dont get URL from post content can be checked/unchecked by default); enhancement: Quick Edit column integrated with CDN + Optimized Thumbnails; fix: conflict with Yoast Duplicate Post plugin (update of the duplicated post was changing the image of the original one); fix: PHP Notice (Undefined offset).