Enable Media Replace - Version 3.3.11

Version Description

Release date: 10th March 2020 * Fix the crashing of certain frontend builders when the plugin is active.

Download this release

Release Info

Developer petredobrescu
Plugin Icon 128x128 Enable Media Replace
Version 3.3.11
Comparing to
See all releases

Code changes from version 3.3.10 to 3.3.11

classes/emr-plugin.php CHANGED
@@ -260,9 +260,14 @@ class EnableMediaReplacePlugin
260
261
public function attachment_editor($form_fields, $post)
262
{
263
- $screen = get_current_screen();
264
- if(! is_null($screen) && $screen->id == 'attachment') // hide on edit attachment screen.
265
- return $form_fields;
266
267
$url = $this->getMediaReplaceURL($post->ID);
268
$action = "media_replace";
260
261
public function attachment_editor($form_fields, $post)
262
{
263
+ $screen = null;
264
+ if (function_exists('get_current_screen'))
265
+ {
266
+ $screen = get_current_screen();
267
+
268
+ if(! is_null($screen) && $screen->id == 'attachment') // hide on edit attachment screen.
269
+ return $form_fields;
270
+ }
271
272
$url = $this->getMediaReplaceURL($post->ID);
273
$action = "media_replace";
enable-media-replace.php CHANGED
@@ -3,7 +3,7 @@
3
Plugin Name: Enable Media Replace
4
Plugin URI: https://wordpress.org/plugins/enable-media-replace/
5
Description: Enable replacing media files by uploading a new file in the "Edit Media" section of the WordPress Media Library.
6
- Version: 3.3.10
7
Author: ShortPixel
8
Author URI: https://shortpixel.com
9
Text Domain: enable-media-replace
@@ -25,7 +25,8 @@ http://www.gnu.org/licenses/gpl.html
25
*/
26
27
namespace EnableMediaReplace;
28
- define('EMR_VERSION', '3.3.10');
29
30
if ( ! defined( 'ABSPATH' ) ) {
31
exit; // Exit if accessed directly.
3
Plugin Name: Enable Media Replace
4
Plugin URI: https://wordpress.org/plugins/enable-media-replace/
5
Description: Enable replacing media files by uploading a new file in the "Edit Media" section of the WordPress Media Library.
6
+ Version: 3.3.11
7
Author: ShortPixel
8
Author URI: https://shortpixel.com
9
Text Domain: enable-media-replace
25
*/
26
27
namespace EnableMediaReplace;
28
+
29
+ define('EMR_VERSION', '3.3.11');
30
31
if ( ! defined( 'ABSPATH' ) ) {
32
exit; // Exit if accessed directly.
img/wp-modula.jpg ADDED
Binary file
readme.txt CHANGED
@@ -3,9 +3,9 @@ Contributors: ShortPixel
3
Donate link: https://www.paypal.me/resizeImage
4
Tags: replace, attachment, media, files, replace image, replace jpg, change media, replace media, image, file
5
Requires at least: 4.9.7
6
- Tested up to: 5.3
7
Requires PHP: 5.6
8
- Stable tag: trunk
9
10
Easily replace any attached image/file by simply uploading a new file in the Media Library edit view - a real time saver!
11
@@ -47,15 +47,25 @@ If you want more control over the format used to display the time, you can use t
47
48
== Changelog ==
49
50
= 3.3.9 =
51
52
Release date: 23rd February 2020
53
* Fix issue with JSON encoded strings
54
- * Language – 0 new strings added, 0 updated, 0 fuzzied, and 0 obsoleted
55
56
Release date: 19th February 2020
57
* Fix issue with search/replacing non-image attachments and query
58
- * Language – 0 new strings added, 0 updated, 0 fuzzied, and 0 obsoleted
59
60
= 3.3.8 =
61
3
Donate link: https://www.paypal.me/resizeImage
4
Tags: replace, attachment, media, files, replace image, replace jpg, change media, replace media, image, file
5
Requires at least: 4.9.7
6
+ Tested up to: 5.3.2
7
Requires PHP: 5.6
8
+ Stable tag: 3.3.11
9
10
Easily replace any attached image/file by simply uploading a new file in the Media Library edit view - a real time saver!
11
47
48
== Changelog ==
49
50
+ = 3.3.11 =
51
+
52
+ Release date: 10th March 2020
53
+ * Fix the crashing of certain frontend builders when the plugin is active.
54
+
55
+ = 3.3.10 =
56
+
57
+ Release date: 23rd February 2020
58
+ * Fix issue with JSON encoding which was interfering with Advanced Custom Fields and other plugins
59
+
60
= 3.3.9 =
61
62
Release date: 23rd February 2020
63
* Fix issue with JSON encoded strings
64
+ * Language – 0 new strings added, 2 updated, 0 fuzzied, and 0 obsoleted
65
66
Release date: 19th February 2020
67
* Fix issue with search/replacing non-image attachments and query
68
+ * Language – 0 new strings added, 2 updated, 0 fuzzied, and 0 obsoleted
69
70
= 3.3.8 =
71