Skip to content
Snippets Groups Projects
Commit 685b8bce authored by ale's avatar ale
Browse files

Debug wp_handle_upload_error

parent 4b209c1a
No related branches found
Tags v0.1.1
No related merge requests found
Pipeline #54107 passed
......@@ -3,7 +3,7 @@
* Plugin Name: wp-mat
* Plugin URI: https://git.autistici.org/noblogs/wp-mat
* Description: Process uploaded files through MAT
* Version: 0.0.9
* Version: 0.0.10
* Author: Autistici/Inventati
* Author URI: https://www.autistici.org/
* License: MIT
......@@ -96,3 +96,8 @@ function wp_mat_handle_upload_prefilter($file) {
}
add_filter('wp_handle_upload_prefilter', 'wp_mat_handle_upload_prefilter');
function wp_handle_upload_error(&$file, $message) {
error_log("wp_handle_upload_error: ".$message);
return array( "error" => $message );
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment