PluginProbe ʕ •ᴥ•ʔ
Enable Media Replace / 4.1.6
Enable Media Replace v4.1.6
4.1.9 trunk 1.0 1.1 1.2 1.3 1.4 1.4.1 2.0 2.0.1 2.1 2.2 2.3 2.4 2.4.1 2.5 2.5.1 2.5.2 2.6 2.7 2.8 2.8.1 2.8.2 2.9 2.9.1 2.9.2 2.9.3 2.9.4 2.9.5 2.9.6 3.0 3.0.1 3.0.2 3.0.3 3.0.4 3.0.5 3.0.6 3.1 3.1.1 3.2 3.2.1 3.2.2 3.2.3 3.2.4 3.2.5 3.2.6 3.2.7 3.2.8 3.2.9 3.3.0 3.3.1 3.3.10 3.3.11 3.3.12 3.3.2 3.3.3 3.3.4 3.3.5 3.3.6 3.3.7 3.3.8 3.3.9 3.4.0 3.4.1 3.4.2 3.5.0 3.6.0 3.6.1 3.6.2 3.6.3 4.0.0 4.0.1 4.0.2 4.0.3 4.1.0 4.1.1 4.1.2 4.1.3 4.1.4 4.1.5 4.1.6 4.1.7 4.1.8
enable-media-replace / readme.txt
enable-media-replace Last commit date
build 2 years ago classes 1 year ago css 3 years ago img 3 years ago js 3 years ago languages 7 years ago scss 3 years ago views 2 years ago LICENSE 11 years ago enable-media-replace.php 8 months ago index.php 7 years ago readme.txt 1 year ago thumbnail_updater.php 6 years ago
readme.txt
582 lines
1 === Enable Media Replace ===
2 Contributors: ShortPixel
3 Donate link: https://www.paypal.me/resizeImage
4 Tags: replace, replace image, remove background, replace jpg, change media
5 Requires at least: 4.9.7
6 Tested up to: 6.8
7 Requires PHP: 5.6
8 Stable tag: 4.1.6
9 License: GPLv2 or later
10 License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
12 Easily replace any attached image/file by simply uploading a new file in the Media Library edit view - a real time saver!
13
14 == Description ==
15
16 **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>
17 New beta feature! You can now remove the background of your images for better integration with eCommerce solutions!
18 Supported by the friendly team that created <a href="https://wordpress.org/plugins/shortpixel-image-optimiser/" target="_blank">ShortPixel</a> :)**
19
20 #### A real timesaver
21
22 Don't you find it tedious and complicated to first delete a file and then upload another one with the exact same name every time you want to update an image or other uploaded file in the WordPress media library?
23
24 Well, no longer!
25
26 Now you can replace any uploaded file in the Edit Media view, where it should be. Replacing Media can be done in two ways:
27
28 #### It's simple to replace a file
29
30 1. Simply replace the file. This option requires you to upload a file of the same type as the file you want to replace. The attachment name remains the same regardless of what the file you upload is called.
31 2. Replace the file, use the new file name, and update all links. If you check this option, the old file will be replaced with the name and type of the file you are uploading. All links pointing to the current file will be updated to point to the new file name. Additional options for the folder to put the new file in or the date of the new file are also available on the replace screen.
32
33 This plugin is very powerful and a must-have for all major websites built with WordPress. It also offers a preview of the replaced image!
34
35 #### New beta feature: You can now remove the background of any image!
36 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.
37 The background removal feature is still in beta and will be free of charge for a reasonable usage.
38
39 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>:
40
41 ```add_filter( 'emr/feature/background', '__return_false' );```
42
43 A similar filter, for the remote notification system is:
44
45 ```add_filter( 'emr/feature/remote_notice', '__return_false' );```
46
47 To shorten the wait time before redirecting to the media editing screen, use the following filter and specify the wait time in seconds (0 means that redirection is immediate, but may cause problems in certain configurations):
48
49 ```add_filter('emr/success/timeout', function () { return 3; });```
50
51 #### Show file modification time
52
53 There is a shortcode that takes the file modification date and displays it in a post or on a page. The code is:
54 `[file_modified id=XX format=XXXX]` where the "id" is required and the "format" is optional and defaults to your current WordPress settings for date and time format.
55
56 So `[file_modified id=870]` would show the last time the file with ID 870 was updated on your site. To get the ID for a file, check the URL when editing a file in the media library (see screenshot #4)
57
58 If you want more control over the format in which the time is shown, you can use the format option. So `[file_modified id=870 format=Y-m-d]` would show the date the file was modified but not the time. The format string uses [the standard PHP date() formatting tags](http://php.net/manual/en/function.date.php).
59
60 **Other plugins by [ShortPixel](https://shortpixel.com):**
61
62 * [FastPixel Caching](https://wordpress.org/plugins/fastpixel-website-accelerator/) - WP Optimization made easy
63 * [ShortPixel Image Optimizer](https://wordpress.org/plugins/shortpixel-image-optimiser/) - Image optimization & compression for all the images on your website, including WebP & AVIF delivery
64 * [ShortPixel Adaptive Images](https://wordpress.org/plugins/shortpixel-adaptive-images/) - On-the-fly image optimization & CDN delivery
65 * [Resize Image After Upload](https://wordpress.org/plugins/resize-image-after-upload/) - Automatically resize each uploaded image
66 * [reGenerate Thumbnails Advanced](https://wordpress.org/plugins/regenerate-thumbnails-advanced/) - Easily regenerate thumbnails
67 * [WP SVG Images](https://wordpress.org/plugins/wp-svg-images/) - Secure upload of SVG files to Media Library
68
69 **Get in touch!**
70
71 * Email <a href="https://shortpixel.com/contact" target="_blank">https://shortpixel.com/contact</a>
72 * Twitter <a href="https://twitter.com/shortpixel" target="_blank">https://twitter.com/shortpixel</a>
73 * Facebook <a href="https://www.facebook.com/ShortPixel" target="_blank">https://www.facebook.com/ShortPixel</a>
74 * LinkedIn <a href="https://www.linkedin.com/company/shortpixel" target="_blank">https://www.linkedin.com/company/shortpixel</a>
75
76 == Frequently Asked Questions ==
77
78 = Where do I report security bugs found in this plugin? =
79 Please report security bugs found in the source code of the Enable Media Replace plugin through the [Patchstack Vulnerability Disclosure Program](https://patchstack.com/database/vdp/enable-media-replace). The Patchstack team will assist you with verification, CVE assignment, and notify the developers of this plugin.
80
81 == Changelog ==
82
83 = 4.1.6 =
84
85 Release date: March 25, 2025
86 * Fix: A potential "Reflected Cross-Site Scripting" vulnerability has been patched, responsibly disclosed by the PatchStack team.
87
88 = 4.1.5 =
89
90 Release date: December 14, 2023
91 * Tweak: Added a filter to disable the remote notification system added in version 4.1.0;
92 * Fix: A potential "Reflected Cross-Site Scripting" vulnerability has been patched, responsibly disclosed by the Wordfence team.
93
94 = 4.1.4 =
95
96 Release date: September 22, 2023
97 * Fix: The latest security fix was breaking the replacements made with Beaver Builder (and possibly other builders);
98
99 = 4.1.3 =
100
101 Release date: September 14, 2023
102 * Fix: A possible PHP Object Injection was patched, which could be exploited under certain conditions;
103 * Fix: ShortPixel Image Optimizer handles offloading when both plugins are used with WP Offload Media.
104
105 = 4.1.2 =
106
107 Release date: April 24, 2023
108 * Tweak: Reduced the wait time before redirecting to the media edit page to half (5s);
109 * Fix: If an item is not offloaded, no attempt is made to update its data;
110 * Fix: Removed some double spaces from the plugin strings (thanks to @Presskopp).
111
112 = 4.1.1 =
113
114 Release date: April 13, 2023
115 * Tweak: Added a filter to reduce or remove the wait time before redirecting to the media edit page;
116 * Fix: Replacement works again on multisite setups where the plugin reported the path outside the uploads folder;
117 * Fix: In some cases, replacement didn't work when images were offloaded;
118 * Fix: Some translation strings were corrected (thanks @alexclassroom !).
119
120 = 4.1.0 =
121
122 Release date: March 28, 2023
123 * New: Integration with WP Offload Media; items that are offloaded can now be replaced correctly;
124 * New: Switch to a Replacer module that improves the code and makes it more robust;
125 * New: Adding an intermediate confirmation page to solve possible redirection issues;
126 * Tweak: The new image can now be dragged and dropped directly into the preview area;
127 * Tweak: Improved the display of both the original image and the new image on the replacement screen;
128 * Tweak: Improved the notification system and added a mechanism for remote notifications;
129 * Tweak: Updated the texts and banners to look better on the replacement screen;
130 * Fix: Added documentation in the readme to disable the background removal feature (kudos to @jstask82);
131 * Fix: Increased the security of the plugin by adding checks for various AJAX calls;
132
133 = 4.0.3 =
134
135 Release date: February 21, 2023
136 * Fix: background removal notification is no longer displayed when this feature is disabled with the filter;
137 * Compat: improved compatibility with PHP 8.1 and 8.2
138 * Tweak: updated the banners on the replace page.
139
140 = 4.0.2 =
141
142 Release date: January 13, 2023
143 * Fix: patched a security vulnerability that could allow loading an unauthorized file during the replace operation;
144 * Fix: finish the replace operation even if the tmp file cannot be removed due to file permissions issues;
145 * Fix: when replacing a scaled file with a non-scaled file, some links were broken;
146 * Fix: under certain conditions a PHP warning about an undefined array key was displayed.
147
148 = 4.0.1 =
149
150 Release date: November 23, 2022
151 * Fix: files are now replaced correctly in environments running on Windows/IIC servers;
152 * Fix: the mime type is now correctly detected, so that a warning is no longer displayed when replacing PDFs;
153 * Fix: the plugin no longer tries to load its code for post IDs that are not attachments, like comments;
154 * Fix: some warnings were displayed when using the Members plugin;
155 * Compat: added integration for SiteOrigin Page Builder to correctly replace files in its widgets;
156 * Compat: added `emr_after_remove_current` action hook (thanks @luistar15);
157 * Tweak: added filter to disable the background replace functionality.
158
159 = 4.0.0 =
160
161 Release date: September 5th, 2022
162 * New: added the functionality to remove the background for any image;
163 * Fix: images added to the new block-style widgets were not replaced;
164 * Fix: the original file was not removed after replacement if a multilingual plugin was installed;
165 * Fix: additional checks were added to the new upload path for replacements, to avoid possible vulnerabilities, kudos to @soulseekah;
166 * Fix: an object cache flush was added after an image was replaced to prevent the content from still being cached in the post editor;
167 * Fix: if there was no `_wp_attached_file` in the postmeta table a fatal error was thrown;
168 * Fix: the time zone was not displayed correctly on the Replace Media screen;
169 * Fix: added some additional checks for file path to avoid `open_basedir` restrictions;
170 * Fix: added titles for the Replace Media and Remove Background screens;
171 * Fix: various small CSS/JS fixes, wording updates and code cleanups;
172
173 = 3.6.3 =
174
175 Release date: November 25th, 2021
176 * Fix: the shortcode `file-modified` works again for non-privileged visitors as well;
177 * Compat: if other plugins don't properly use WP Hooks, don't return errors;
178 * Tweak: updated banners list from the EMR screen.
179
180 = 3.6.2 =
181
182 Release date: November 8th, 2021
183 * Fix: there was an issue in file.php with checking mime-type, resulting in weird mime-type values in certain cases (thanks @dougaxe1 for the PR);
184 * Fix: if target mime type returns empty, don't store that;
185 * Tweak: removed old notification about SPIO.
186
187 = 3.6.1 =
188
189 Release date: October 27th, 2021
190 * Fix: there was a broken image in one of the plugin notices;
191 * Fix: added a check for the function `mime_content_type`, which doesn't seem to always be available on various hosts;
192 * Fix: the plugin checks if the current user has rights to install/activate plugins and only then displays the 1-click installers and also a filter is available now;
193
194 = 3.6.0 =
195
196 Release date: October 11th, 2021
197 * New: Constant EMR_CAPABILITY can define extra user roles to allow and deny replacements;
198 * New: Replacing an usual image with an SVG file will just replace all thumbnails by the main file;
199 * New: Also replaces caption when set in Exif data (when replacing with updating all links);
200 * Tweak: Added Now and Original options to Custom Date for usability;
201 * Tweak: changes/updates to the banners from the EMR screen;
202 * Fix: EMR now respects edit_other_posts permissions using default permissions;
203 * Fix: EMR with ALLOW_UNFILTERED_UPLOADS enabled (and allowed role) will not limit non-allowed uploads;
204 * Fix: some missing and wrong text-domains are now corrected (thanks @alexclassroom);
205 * Fix: a missing dot in the plugin description was preventing the transaltions to properly work;
206 * Fix: the plugin can now be uninstalled/deleted on PHP 8.
207
208 = 3.5.0 =
209
210 Release date: October 29th 2020
211 * New: EMR now replaces across all meta tables;
212 * New: the plugin remembers last used settings;
213 * New: integration with the LiteSpeed cache plugin and webserver;
214 * Tweak: manual Logging will no longer work if user is not logged as administrator;
215 * Tweak: added `post_id` to `enable-media-replace-upload-done` action args, props to @Jan Stiegler;
216 * Fix: fully works now with Elementor;
217 * Fix: the issue for WP-Bakery and URL-Encoded links is now fixed;
218 * Fix: the plugin should now work with images added through Visual Composer;
219 * Fix: EMR now uses queries instead of WordPress functions, correctly handling slashes and JSON formats;
220 * Fix: `-scaled` images generated by WordPress are now removed when replacing an image;
221
222 = 3.4.2 =
223
224 Release date: August 17th 2020
225 * New - Also display files size in the replacement windows;
226 * Fix - Replacing image with pdf file would cause noticesi;
227 * Fix - Compensation for faulty WordPress installation that return empty error string on wp_upload_dir and falsely return relative paths and urls on WP core functions;
228 * Fix - When choosing 'replace file and update names' and then uploading a file with identical name as source, it would postfix the duplicate name. This is no longer the case;
229 * Fix - Wording clarification for the situation when the filename is changed, which will lead to broken links from external sites;
230 * Fix - Added hard paths to require_once satements in order to prevent WP-CLI errrors;
231 * Fix - If source image doesn't exist or in error state, replacement would be prevented by Javascript issue.
232
233 = 3.4.1 =
234
235 Release date: June 18th 2020
236 * Fix - PHP Error when settings permissions failed.
237
238 = 3.4.0 =
239
240 Release date: June 9th 2020
241 * New - In edit media screen EMR notes user who replaced file if this was not uploader;
242 * New - Added Drag and Drop area for files;
243 * New - When replacing with new file name, now also possible to update upload path;
244 * Fix - Various minor CSS tweaks and fixes;
245 * Update of Underlying libraries
246
247 = 3.3.12 =
248
249 Release date: 27th April 2020
250 * Fixed - When trying to upload over-limit file would show too many error messages;
251 * Language – 2 new strings added, 0 updated, 0 fuzzied, and 0 obsoleted.
252
253 = 3.3.11 =
254
255 Release date: 10th March 2020
256 * Fix the crashing of certain frontend builders when the plugin is active.
257
258 = 3.3.10 =
259
260 Release date: 23rd February 2020
261 * Fix issue with JSON encoding which was interfering with Advanced Custom Fields and other plugins
262
263 = 3.3.9 =
264
265 Release date: 23rd February 2020
266 * Fix issue with JSON encoded strings
267 * Language – 0 new strings added, 2 updated, 0 fuzzied, and 0 obsoleted
268
269 Release date: 19th February 2020
270 * Fix issue with search/replacing non-image attachments and query
271 * Language – 0 new strings added, 2 updated, 0 fuzzied, and 0 obsoleted
272
273 = 3.3.8 =
274
275 Release date: 18th February 2020
276 * Fixes for WP 5.3+ -scaled images system. Will now replace those as well.
277 * Updating and replacing images and thumbnails should now work for serialized (and such) metadata.
278 - For Beaver Builder
279 * Add extra warning if mimetype is not allowed by WordPress for upload
280 * Put Javascript version in wp_register_script
281 * Hidden double 'replace media'
282 * Replace Image label to Replace Media
283 * Removed constant S3_UPLOADS_AUTOENABLE
284 * Improved detection of SVG image sizes
285 * Fixed - Logger doesn't call wp_upload_dir when not debugging
286 * Extra - Javascript tries to resume after external errors.
287 * Language – 0 new strings added, 2 updated, 0 fuzzied, and 0 obsoleted
288
289 = 3.3.7 =
290
291 Release date: 13th November 2019
292 * call the hook enable-media-replace-upload-done on both modes
293 * fix JSON compatibility for hostings that don't have JSON module activated
294 * Language – 0 new strings added, 0 updated, 0 fuzzied, and 0 obsoleted
295
296 = 3.3.6 =
297
298 Release date: 5th September 2019
299 * fix JSON compatibility for hostings that don't have JSON module activated
300
301 = 3.3.5 =
302
303 Release date: 25th July 2019
304 * fix Replace button on the MediaLibrary image details popup
305
306 = 3.3.4 =
307
308 Release date: 23rd July 2019
309 * compatibility fixes for WP version 4.8 and below
310 * cache killer
311
312 = 3.3.3 =
313
314 Release date: 19th July 2019
315 * Fix error "using $this when not in object context" on some PHP versions
316
317 = 3.3.2 =
318
319 Release date: 17th July 2019
320 * Check if medium size !> 400px, display that one, otherwise smallest.
321 * Fixed: Links not updated when using Advanced Custom Fields
322 * Fixed: Fails silently when file is too big for upload
323 * When source file does not exist, show placeholder instead of failed image load
324 * Fixed: Fatal error when replacing images
325 * Fixed: Not the right time zone on replace
326 * Fixed Beaver Builder incompatibility by not allowing replace with rename.
327 * Fixed: Cannot replace non default Wordpress file types, even those allowed to upload [ Media Library Assistant compat ]
328 * Fixed: error when trying to remove a file that doesn't exist - because the files are actually on another server
329
330 = 3.3.1 =
331
332 Release date: 18th June 2019
333 * Fix error class not found on WPEngine
334
335 = 3.3.0 =
336 * When replacing an image and changing the name, Search / Replace is now also done on the meta_value of postmeta.
337 * Replace PDF thumbnails too
338 * Copy title from EXIF
339 * RTL View incorporated into the CSS
340 * ‘wp_handle_upload’ filter should be treated as such (and not as action)
341 * Use wp_attached_file instead of the GUID
342 * Fix: replace missing file
343 * Fix: aphostrophe breaking the upload
344 * Fix: broken "before" image
345 * Fix: update properly the date
346 * Fix: errors for non-image items in Media Library
347 * Fix: empty admin menu item created
348 * Refactored all the code
349
350 = 3.2.9 =
351 * properly replace thumbnails names in the content when the replaced image has a different aspect ratio, thus the new thumbnails have a different height in the name.
352
353 = 3.2.8 =
354 * fix for failures in link updating when replacing file because of addslashes - use prepared query instead
355 * replace basename with wp_basename because basename doesn't work well with UTF8
356
357 = 3.2.7 =
358 * Add minimum required php version to run the plugin.
359 * Security: Prevent direct access to php files.
360 * Security: Prevent direct access to directories.
361 * Security: Escape translation strings using `esc_attr__()` and `esc_html__()` functions.
362 * Fix RTL issues.
363
364 = 3.2.6 =
365 * no more 404 error if no image was selected when trying to replace it
366 * added preview so you can check the image being replaced and also the image that's being replaced with
367 * .dat files can be replaced (functionality accidentally removed in the previous version)
368 * added compatibility with S3 upload plugin
369 * when an image is replaced the date is also updated
370
371 = 3.2.5 =
372 * remove the leftover setcookie and the plugins recommendations.
373
374 = 3.2.4 =
375 * Fix PDF thumbnails not replaced when replacing a PDF
376 * Fix not replacing text files with .dat extension
377
378 = 3.2.3 =
379 * disable ShortPixel recommendation on secondary sites of a multisite install when it was network activated.
380
381 = 3.2.2 =
382 * Fixed compatibility with ShortPixel and Resize Image After Upload
383 * Added ShortPixel links and images, fixed the problem of ShortPixel recommendation not dismissing.
384
385 = 3.2.1 =
386 * Bugfix, typo made metadata changes (thanks GitHub user icecandy!)
387 * Removed Shortpixel links and images
388
389 = 3.2 =
390 * Tested with WP 4.9.4
391 * Added Shortpixel link in replace media screen
392
393 = 3.1.1 =
394 * Fixed bug introduced in an earlier version, preventing the updating of URLs on pages/posts if the link did not contain the domain name
395
396 = 3.1 =
397 * Got rid of some pesky old code, and added some better filtering options, thanks to GitHub users speerface, aaemnnosttv, and ururk
398 * Brand new, shiny code to replace other image sizes in embedded media, thanks to GitHub user ianmjones!
399 * Tested with WP 4.8
400
401 = 3.0.6 =
402 * Tested with WP 4.7.2
403 * New PT translations (thanks Pedro Mendonca! https://github.com/mansj/enable-media-replace/commit/b6e63b9a8a3ae46b3a6664bd5bbf19b2beaf9d3f)
404
405 = 3.0.5 =
406 * Tested with WP 4.6.1
407
408 = 3.0.4 =
409 * Fixed typo in .pt translations (https://github.com/mansj/enable-media-replace/pull/18)
410 * Fixed better error handling in modification date functions (https://github.com/mansj/enable-media-replace/pull/16)
411 * Tested with WP 4.4.1
412
413 = 3.0.3 =
414 * Scrapped old method of detecting media screen, button to replace media will now show up in more places, yay!
415 * Made sure the call to get_attached_file() no longer skips filters, in response to several users wishes.
416 * Suppressed error messages on chmod()
417 * Added Japanese translation (Thank you, chacomv!)
418
419 = 3.0.2 =
420 * Cleaned up language files
421 * Added Portuguese translation (Thanks pedro-mendonca!)
422 * Tested with WP 4.1
423 * Added missing Swedish translation strings
424
425 = 3.0.1 =
426 * Tiny fix to re-insert the EMR link in the media list view.
427
428 = 3.0 =
429 * Updated for WordPress 4.0
430 * Now inheriting permissions of the replaced files, [Thank you Fiwad](https://github.com/fiwad)
431
432 = 2.9.7RC1 =
433 * Moved localization files into their own directory. [Thank you Michael](https://github.com/michael-cannon)
434 * Moved screenshots into their own directory. [Thank you Michael](https://github.com/michael-cannon)
435
436 = 2.9.6 =
437 * Added fix by Grant K Norwood to address a possible security problem in SQL statements. Thanks Grant!
438 * Created GitHub repo for this plugin, please feel free to contribute at github.com/mansj/enable-media-replace
439
440 = 2.9.5 =
441 * Bug fix for the short code displaying the modification date of a file
442 * Updated all database queries in preparation for WP 3.9
443
444 = 2.9.4 =
445 * Bug fix for timezone changes in WordPress
446 * Minor UI change to inform the user about what actually happens when replacing an image and using a new file name
447
448 = 2.9.3 =
449 * Added call to update_attached_file() which should purge changed files for various CDN and cache plugs. Thanks Dylan Barlett for the suggestion! (http://wordpress.org/support/topic/compatibility-with-w3-total-cache)
450 * Suppressed possible error in new hook added in 2.9.2
451
452 = 2.9.2 =
453 * Small bug fix
454 * Added hook for developers to enable purging possible CDN when updating files - thanks rubious for the suggestion!
455
456 = 2.9.1 =
457 * Added Brazilian Portuguese translation, thanks Roger Nobrega!
458 * Added filter hook for file name creation, thanks to Jonas Lundman for the code!
459 * Added modification date to the edit attachment screen, thanks to Jonas Lundman for the code!
460 * Enhanced the deletion method for old file/image thumbnails to never give unnecessary error messages and more accurately delete orphaned thumbs
461
462 = 2.9 =
463 * Added Portuguese translation, thanks Bruno Miguel Bras Silva!
464 * New edit link from media library
465 * After uploading, the plugin now takes you back to edit screen instead of library
466
467 = 2.8.2 =
468 * Made another change to the discovery of media context which will hopefully fix a bug in certain cases. Thanks to "Joolee" at the WordPress.org forums!
469 * Added a new, supposedly better Russian translation from "Vlad".
470
471 = 2.8.1 =
472 * Fixed a small bug which could create error messages on some systems when deleting old image files.
473
474 = 2.8 =
475 * New and safer method for deleting thumbnails when a new image file is uploaded.
476 * New translations for simplified Chinese (thanks Tunghsiao Liu) and Italian (grazie Marco Chiesi)
477 * Added method for detecting upload screen to ensure backward compatibility with versions pre 3.5
478
479 = 2.7 =
480 * A couple of changes made to ensure compatibility with WordPress 3.5. Thanks to Elizabeth Powell for the fixes!
481
482 = 2.6 =
483 * New and improved validation of uploaded files, now using WP's own functions for checking file type and extension. Thanks again to my old friend Ulf "�
484 rsta" Härnhammar for keeping us all on our toes! :) This should also hopefully fix the problems people have been having with their installations claiming that perfectly good PDF files are not allowed file types.
485
486 = 2.5.2 =
487 * The "more reliable way" of determining MIME types turned out to be less reliable. Go figure. There seems to be no perfect way of performing a reliable check for MIME-types on an uploaded file that is also truly portable. I have now made checks for the availability of mime_content_type() before using it, using the old method as a fall-back. It is far from beautiful, so if anybody has a better way of doing it, please contact me!
488
489 = 2.5.1 =
490 * Bug fix - there is now a more reliable way of determining file type on your upload so you can upload PDF files without seeing that pesky "File type does not meet security guidelines" message.
491 * New translation to Danish - thanks to Michael Bering Petersen!
492
493 = 2.5 =
494 * Tested with WordPress 3.2.1
495 * New translation to German - thanks to Martin Lettner!
496 * New translation to French - thanks to François Collette!
497
498 = 2.4.1 =
499 * Bug fix for WordPress 3.1 RC. Now properly tested and should be working with 3.1 whenever it finally comes out. :)
500
501 = 2.4 =
502 * Bug fixes, security fixes. Thanks to my old pal Ulf "&Aring;rsta" H&auml;rnhammar for pointing them out!
503 * New method for uploading avoids going around WP, for greater security.
504
505 = 2.3 =
506 * Lots of code trimmed and enhanced, thanks to Ben ter Stal! Now working properly with Windows systems, better security, optimized loading, and much more.
507 * Added Dutch translation by Ben ter Stal.
508
509 = 2.2 =
510 * Bug fix, fixed typo in popup.php, thanks to Bill Dennen and others for pointing this out!
511
512 = 2.1 =
513 * New shortcode - display file modification date on your site (see description for more info)
514 * A couple of bug fixes for final release of 3.0 - Thanks to Jim Isaacs for pointing them out!
515
516 = 2.0.1 =
517 * Added support for SSL admin
518
519 = 2.0 =
520 * Replaced popup with inline navigation when replacing media
521 * Added instructions in admin link under Media
522
523 = 1.4.1 =
524 * Tested with WordPress 3.0 beta 2
525
526 = 1.4 =
527 * Removed short tags for better compatibility.
528
529 = 1.3 =
530 * Added support for wp_config setting "FORCE_SSL_ADMIN"
531
532 = 1.2 =
533 * Added Russian translation, thanks to Fat Cower.
534
535 = 1.1 =
536 * Minor bugfix, now working with IE8 too!
537
538 = 1.0 =
539 * First stable version of plugin.
540
541 == Installation ==
542
543 Quick and easy installation:
544
545 1. Upload the folder `enable-media-replace` to your plugin directory
546 1. Activate the plugin through the 'Plugins' menu in WordPress
547 1. Done!
548
549 == Frequently Asked Questions ==
550
551 = What does this plugin actually do? =
552
553 This plugin makes it easy to update/replace files that have been uploaded to the WordPress Media Library.
554
555 = How does it work? =
556
557 A new option will be available in the Edit Media view, called "Replace Media". This is where you can upload a new file to replace the old one.
558
559 = I replaced a file, but it didn't change! =
560
561 There are two main reasons this would happen.
562
563 First, make sure you are not viewing a cached version of the file, especially if you replaced an image. Press "Refresh" in your browser to make sure.
564
565 Second, if the file really looks unchanged, make sure WordPress has write permissions to the files in your uploads folder. If you have ever moved your WP installation (maybe when you moved it to a new server), the permissions on your uploaded files are commonly reset so that WordPress no longer has permissions to change the files. If you don't know how to do this, contact your web server operator.
566
567 == Screenshots ==
568
569 1. The new link in the media library.
570 2. The replace media-button as seen in the "Edit media" view.
571 3. The upload options.
572 4. Get the file ID in the edit file URL
573
574 == Wishlist / Coming attractions ==
575
576 Do you have suggestions? Feel free to contact ShortPixel <a href="https://shortpixel.com/contact" target="_blank">here</a>
577
578
579 == Contribute ==
580
581 Want to help us improve the plugin feel free to submit PRs via GitHub <a href="https://github.com/short-pixel-optimizer/enable-media-replace" target="_blank">here</a>.
582