mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-15 20:53:39 +09:00
- 2.0.46 pre-release;
This commit is contained in:
@@ -171,6 +171,10 @@ if ( ! class_exists( 'um\core\Files' ) ) {
|
||||
}
|
||||
}
|
||||
|
||||
if ( validate_file( $file_path ) !== 0 ) {
|
||||
return;
|
||||
}
|
||||
|
||||
$file_info = get_user_meta( $user_id, $field_key . "_metadata", true );
|
||||
|
||||
$pathinfo = pathinfo( $file_path );
|
||||
@@ -211,6 +215,10 @@ if ( ! class_exists( 'um\core\Files' ) ) {
|
||||
}
|
||||
}
|
||||
|
||||
if ( validate_file( $file_path ) !== 0 ) {
|
||||
return;
|
||||
}
|
||||
|
||||
$file_info = get_user_meta( $user_id, $field_key . "_metadata", true );
|
||||
|
||||
$pathinfo = pathinfo( $file_path );
|
||||
|
||||
Reference in New Issue
Block a user