Version Description
- Small bug fix
- Added hook for developers to enable purging possible CDN when updating files - thanks rubious for the suggestion!
Download this release
Release Info
| Developer | MungoBBQ |
| Plugin | |
| Version | 2.9.2 |
| Comparing to | |
| See all releases | |
Code changes from version 2.9.1 to 2.9.2
- enable-media-replace.php +1 -1
- readme.txt +4 -0
- upload.php +4 -0
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.9.
|
| 7 |
Author: Måns Jonasson
|
| 8 |
Author URI: http://www.mansjonasson.se
|
| 9 |
|
| 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.9.2
|
| 7 |
Author: Måns Jonasson
|
| 8 |
Author URI: http://www.mansjonasson.se
|
| 9 |
|
readme.txt
CHANGED
|
@@ -37,6 +37,10 @@ If you want more control over the format used to display the time, you can use t
|
|
| 37 |
|
| 38 |
== Changelog ==
|
| 39 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 40 |
= 2.9.1 =
|
| 41 |
* Added Brazilian Portuguese translation, thanks Roger Nobrega!
|
| 42 |
* Added filter hook for file name creation, thanks to Jonas Lundman for the code!
|
| 37 |
|
| 38 |
== Changelog ==
|
| 39 |
|
| 40 |
+
= 2.9.2 =
|
| 41 |
+
* Small bug fix
|
| 42 |
+
* Added hook for developers to enable purging possible CDN when updating files - thanks rubious for the suggestion!
|
| 43 |
+
|
| 44 |
= 2.9.1 =
|
| 45 |
* Added Brazilian Portuguese translation, thanks Roger Nobrega!
|
| 46 |
* Added filter hook for file name creation, thanks to Jonas Lundman for the code!
|
upload.php
CHANGED
|
@@ -155,6 +155,10 @@ if (is_uploaded_file($_FILES["userfile"]["tmp_name"])) {
|
|
| 155 |
|
| 156 |
$returnurl = get_bloginfo("wpurl") . "/wp-admin/upload.php?posted=3";
|
| 157 |
$returnurl = get_bloginfo("wpurl") . "/wp-admin/post.php?post={$_POST["ID"]}&action=edit&message=1";
|
|
|
|
|
|
|
|
|
|
|
|
|
| 158 |
} else {
|
| 159 |
//TODO Better error handling when no file is selected.
|
| 160 |
//For now just go back to media management
|
| 155 |
|
| 156 |
$returnurl = get_bloginfo("wpurl") . "/wp-admin/upload.php?posted=3";
|
| 157 |
$returnurl = get_bloginfo("wpurl") . "/wp-admin/post.php?post={$_POST["ID"]}&action=edit&message=1";
|
| 158 |
+
|
| 159 |
+
// Execute hook actions - thanks rubious for the suggestion!
|
| 160 |
+
do_action("enable-media-replace-upload-done", ($new_guid ? $new_guid : $current_guid));
|
| 161 |
+
|
| 162 |
} else {
|
| 163 |
//TODO Better error handling when no file is selected.
|
| 164 |
//For now just go back to media management
|
