Skip to content
Snippets Groups Projects
Commit 549595ab authored by ale's avatar ale
Browse files

Explicitly set error to 0 in returned $file

parent 9cda8b54
No related branches found
Tags v0.1.1
No related merge requests found
Pipeline #54102 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.7
* Version: 0.0.8
* Author: Autistici/Inventati
* Author URI: https://www.autistici.org/
* License: MIT
......@@ -79,6 +79,7 @@ function wp_mat_handle_upload_prefilter($file) {
"type" => $file['type'],
"tmp_name" => $new_tmp_file,
"size" => filesize($new_tmp_file),
"error" => 0,
);
error_log("wp-mat: successfully cleaned file=".json_encode($new_file));
$file = $new_file;
......
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