Enable Media Replace - Version 2.4.1

Version Description

  • Bug fix for WordPress 3.1 RC. Now properly tested and should be working with 3.1 whenever it finally comes out. :)
Download this release

Release Info

Developer MungoBBQ
Plugin Icon 128x128 Enable Media Replace
Version 2.4.1
Comparing to
See all releases

Code changes from version 2.4 to 2.4.1

Files changed (4) hide show
  1. enable-media-replace.php +2 -2
  2. popup.php +1 -1
  3. readme.txt +5 -2
  4. upload.php +0 -1
enable-media-replace.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Enable Media Replace
4
  Plugin URI: http://www.mansjonasson.se/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: 2.4
7
  Author: M�ns Jonasson
8
  Author URI: http://www.mansjonasson.se
9
 
@@ -128,4 +128,4 @@ function emr_get_modified_date($atts) {
128
  }
129
 
130
 
131
- ?>
3
  Plugin Name: Enable Media Replace
4
  Plugin URI: http://www.mansjonasson.se/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: 2.4.1
7
  Author: M�ns Jonasson
8
  Author URI: http://www.mansjonasson.se
9
 
128
  }
129
 
130
 
131
+ ?>
popup.php CHANGED
@@ -30,7 +30,7 @@ $current_filename = substr($current_filename, (strrpos($current_filename, "/") +
30
  <h2><?php echo __("Replace Media Upload", "enable-media-replace"); ?></h2>
31
 
32
  <?php
33
- $url = admin_url( "upload.php?page=enable-media-replace/enable-media-replace.php&action=media_replace_upload&attachment_id=" . (int) $_GET["attachment_id"]);
34
  $action = "media_replace_upload";
35
  $formurl = wp_nonce_url( $url, $action );
36
  if (FORCE_SSL_ADMIN) {
30
  <h2><?php echo __("Replace Media Upload", "enable-media-replace"); ?></h2>
31
 
32
  <?php
33
+ $url = admin_url( "upload.php?page=enable-media-replace/enable-media-replace.php&noheader=true&action=media_replace_upload&attachment_id=" . (int) $_GET["attachment_id"]);
34
  $action = "media_replace_upload";
35
  $formurl = wp_nonce_url( $url, $action );
36
  if (FORCE_SSL_ADMIN) {
readme.txt CHANGED
@@ -2,7 +2,7 @@
2
  Contributors: mungobbq
3
  Tags: admin, attachment, media, files
4
  Requires at least: 2.8
5
- Tested up to: 3.0.5
6
  Stable tag: trunk
7
 
8
  Enables replacing attachment files by simply uploading a new file in the media library edit view.
@@ -37,8 +37,11 @@ If you want more control over the format used to display the time, you can use t
37
 
38
  == Changelog ==
39
 
 
 
 
40
  = 2.4 =
41
- * Bug fixes, security fixes. Thanks to my old pal Ulf "rsta" Hrnhammar for pointing them out!
42
  * New method for uploading avoids going around WP, for greater security.
43
 
44
  = 2.3 =
2
  Contributors: mungobbq
3
  Tags: admin, attachment, media, files
4
  Requires at least: 2.8
5
+ Tested up to: 3.1
6
  Stable tag: trunk
7
 
8
  Enables replacing attachment files by simply uploading a new file in the media library edit view.
37
 
38
  == Changelog ==
39
 
40
+ = 2.4.1 =
41
+ * Bug fix for WordPress 3.1 RC. Now properly tested and should be working with 3.1 whenever it finally comes out. :)
42
+
43
  = 2.4 =
44
+ * Bug fixes, security fixes. Thanks to my old pal Ulf "&Aring;rsta" H&auml;rnhammar for pointing them out!
45
  * New method for uploading avoids going around WP, for greater security.
46
 
47
  = 2.3 =
upload.php CHANGED
@@ -136,5 +136,4 @@ if (FORCE_SSL_ADMIN) {
136
 
137
  //save redirection
138
  wp_redirect($returnurl);
139
-
140
  ?>
136
 
137
  //save redirection
138
  wp_redirect($returnurl);
 
139
  ?>