Skip to content

Commit 35b3451

Browse files
committed
Update the readme file and version numbers for the 4.1.0 release
1 parent 134fff5 commit 35b3451

File tree

2 files changed

+20
-5
lines changed

2 files changed

+20
-5
lines changed

enable-media-replace.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Plugin Name: Enable Media Replace
44
* Plugin URI: https://wordpress.org/plugins/enable-media-replace/
55
* Description: Enable replacing media files by uploading a new file in the "Edit Media" section of the WordPress Media Library.
6-
* Version: 4.1.0-DEV01
6+
* Version: 4.1.0
77
* Author: ShortPixel
88
* Author URI: https://shortpixel.com
99
* GitHub Plugin URI: https://github.com/short-pixel-optimizer/enable-media-replace
@@ -25,7 +25,7 @@
2525
*
2626
*/
2727

28-
define( 'EMR_VERSION', '4.1.0-DEV01' );
28+
define( 'EMR_VERSION', '4.1.0' );
2929

3030
if ( ! defined( 'ABSPATH' ) ) {
3131
exit; // Exit if accessed directly.

readme.txt

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ Tags: replace, attachment, media, files, replace image, remove background, repla
55
Requires at least: 4.9.7
66
Tested up to: 6.2
77
Requires PHP: 5.6
8-
Stable tag: 4.0.3
8+
Stable tag: 4.1.0
99

1010
Easily replace any attached image/file by simply uploading a new file in the Media Library edit view - a real time saver!
1111

1212
== Description ==
1313

14-
**A free, lightweight and easy to use plugin that allows you to seamlessly replace an image or file in your Media Library by uploading a new file in its place. No more deleting, renaming and re-uploading files!
14+
**A free, lightweight and easy to use plugin that allows you to seamlessly replace an image or file in your Media Library by uploading a new file in its place. No more deleting, renaming and re-uploading files! Now fully compatible with <a href="https://wordpress.org/plugins/amazon-s3-and-cloudfront/" target="_blank">WP Offload Media!</a>
1515
New beta feature! You can now remove the background of your images for better integration with eCommerce solutions!
1616
Supported by the friendly team that created <a href="https://wordpress.org/plugins/shortpixel-image-optimiser/" target="_blank">ShortPixel</a> :)**
1717

@@ -34,7 +34,9 @@ This plugin is very powerful and a must-have for all major websites built with W
3434
Similar to replacing media, you can also remove the background of the images from the Media Library! The background removal feature sends the images to ShortPixel's API, removes the background and sends them back in a preview window. If everything looks good, just replace the image with the one that has the background removed! If the source image is a PNG file, you will get a transparent background, while the other images default to a solid white background. You also have the option to choose a different color with an embedded color picker.
3535
The background removal feature is still in beta and will be free of charge for a reasonable usage.
3636

37-
If you don't want to utilize the background removal feature, add add_filter('emr/feature/background', '__return_false' ); to your functions.php
37+
If you don't want to use the background removal feature, add this line to your theme's functions.php file, or use a plugin like <a href="https://wordpress.org/plugins/code-snippets/" target="_blank">Code Snippets</a>:
38+
39+
```add_filter( 'emr/feature/background', '__return_false' );```
3840

3941
#### Show file modification time
4042

@@ -63,6 +65,19 @@ If you want more control over the format in which the time is shown, you can use
6365

6466
== Changelog ==
6567

68+
= 4.1.0 =
69+
70+
Release date: March 28, 2023
71+
* New: Integration with WP Offload Media; items that are offloaded can now be replaced correctly;
72+
* New: Switch to a Replacer module that improves the code and makes it more robust;
73+
* New: Adding an intermediate confirmation page to solve possible redirection issues;
74+
* Tweak: The new image can now be dragged and dropped directly into the preview area;
75+
* Tweak: Improved the display of both the original image and the new image on the replacement screen;
76+
* Tweak: Improved the notification system and added a mechanism for remote notifications;
77+
* Tweak: Updated the texts and banners to look better on the replacement screen;
78+
* Fix: Added documentation in the readme to disable the background removal feature (kudos to @jstask82);
79+
* Fix: Increased the security of the plugin by adding checks for various AJAX calls;
80+
6681
= 4.0.3 =
6782

6883
Release date: February 21, 2023

0 commit comments

Comments
 (0)