Skip to content

Releases: short-pixel-optimizer/enable-media-replace

Version 4.1.5

14 Dec 15:11
c1a39c9
Compare
Choose a tag to compare
  • Tweak: Added a filter to disable the remote notification system added in version 4.1.0;
  • Fix: A potential "Reflected Cross-Site Scripting" vulnerability has been patched, responsibly disclosed by the Wordfence team.

Version 4.1.4

22 Sep 14:00
3cde582
Compare
Choose a tag to compare
  • Fix: The latest security fix was breaking the replacements made with Beaver Builder (and possibly other builders);

Version 4.1.3

14 Sep 11:53
dfa8b51
Compare
Choose a tag to compare
  • Fix: A possible PHP Object Injection was patched, which could be exploited under certain conditions;
  • Fix: ShortPixel Image Optimizer handles offloading when both plugins are used with WP Offload Media.

Version 4.1.2

24 Apr 14:10
b290930
Compare
Choose a tag to compare
  • Tweak: Reduced the wait time before redirecting to the media edit page to half (5s);
  • Fix: If an item is not offloaded, no attempt is made to update its data;
  • Fix: Removed some double spaces from the plugin strings (thanks to @Presskopp).

Version 4.1.1

13 Apr 08:08
55cb752
Compare
Choose a tag to compare
  • Tweak: Added a filter to reduce or remove the wait time before redirecting to the media edit page;
  • Fix: Replacement works again on multisite setups where the plugin reported the path outside the uploads folder;
  • Fix: In some cases, replacement didn't work when images were offloaded;
  • Fix: Some translation strings were corrected (thanks @alexclassroom !).

Version 4.1.0

28 Mar 09:35
770e4f9
Compare
Choose a tag to compare
  • New: Integration with WP Offload Media; items that are offloaded can now be replaced correctly;
  • New: Switch to a Replacer module that improves the code and makes it more robust;
  • New: Adding an intermediate confirmation page to solve possible redirection issues;
  • Tweak: The new image can now be dragged and dropped directly into the preview area;
  • Tweak: Improved the display of both the original image and the new image on the replacement screen;
  • Tweak: Improved the notification system and added a mechanism for remote notifications;
  • Tweak: Updated the texts and banners to look better on the replacement screen;
  • Fix: Added documentation in the readme to disable the background removal feature (kudos to @jstask82);
  • Fix: Increased the security of the plugin by adding checks for various AJAX calls;

Version 4.0.3

21 Feb 12:38
88d6347
Compare
Choose a tag to compare
  • Fix: background removal notification is no longer displayed when this feature is disabled with the filter;
  • Compat: improved compatibility with PHP 8.1 and 8.2
  • Tweak: updated the banners on the replace page.

Version 4.0.2

21 Feb 12:37
57ed323
Compare
Choose a tag to compare
  • Fix: patched a security vulnerability that could allow loading an unauthorized file during the replace operation;
  • Fix: finish the replace operation even if the tmp file cannot be removed due to file permissions issues;
  • Fix: when replacing a scaled file with a non-scaled file, some links were broken;
  • Fix: under certain conditions a PHP warning about an undefined array key was displayed.

Version 4.0.1

23 Nov 09:43
d7a144f
Compare
Choose a tag to compare
  • Fix: files are now replaced correctly in environments running on Windows/IIC servers;
  • Fix: the mime type is now correctly detected, so that a warning is no longer displayed when replacing PDFs;
  • Fix: the plugin no longer tries to load its code for post IDs that are not attachments, like comments;
  • Fix: some warnings were displayed when using the Members plugin;
  • Compat: added integration for SiteOrigin Page Builder to correctly replace files in its widgets;
  • Compat: added emr_after_remove_current action hook (thanks @luistar15);
  • Tweak: added filter to disable the background replace functionality.

Version 4.0.0

05 Sep 13:54
fdf3ff5
Compare
Choose a tag to compare
  • New: added the functionality to remove the background for any image;
  • Fix: images added to the new block-style widgets were not replaced;
  • Fix: the original file was not removed after replacement if a multilingual plugin was installed;
  • Fix: additional checks were added to the new upload path for replacements, to avoid possible vulnerabilities, kudos to @soulseekah;
  • Fix: an object cache flush was added after an image was replaced to prevent the content from still being cached in the post editor;
  • Fix: if there was no _wp_attached_file in the postmeta table a fatal error was thrown;
  • Fix: the time zone was not displayed correctly on the Replace Media screen;
  • Fix: added some additional checks for file path to avoid open_basedir restrictions;
  • Fix: added titles for the Replace Media and Remove Background screens;
  • Fix: various small CSS/JS fixes, wording updates and code cleanups;