- 2.0.46 pre-release;

This commit is contained in:
nikitasinelnikov
2019-05-09 00:52:42 +03:00
parent aaab2668d6
commit ca1a908aae
3 changed files with 15 additions and 5 deletions
+1 -1
View File
@@ -602,7 +602,7 @@ function um_registration_save_files( $user_id, $args ) {
foreach ( $fields as $key => $array ) {
if ( isset( $args['submitted'][$key] ) ) {
if ( isset( $args['submitted'][ $key ] ) ) {
if ( isset( $fields[ $key ]['type'] ) && in_array( $fields[ $key ]['type'], array( 'image', 'file' ) ) &&
( um_is_temp_file( $args['submitted'][ $key ] ) || $args['submitted'][ $key ] == 'empty_file' )