mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
fix issue #13856 - add filter "um_upload_file_name"
This commit is contained in:
@@ -38,7 +38,7 @@ if(isset($_FILES[$id]['name'])) {
|
||||
if(!is_array($_FILES[$id]['name'])) {
|
||||
|
||||
$temp = $_FILES[$id]["tmp_name"];
|
||||
$file = $id."-".$_FILES[$id]["name"];
|
||||
$file = apply_filters('um_upload_file_name',$id."-".$_FILES[$id]["name"],$id,$_FILES[$id]["name"]);
|
||||
$file = sanitize_file_name($file);
|
||||
$extension = strtolower( pathinfo($file, PATHINFO_EXTENSION) );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user