diff --git a/core/um-actions-form.php b/core/um-actions-form.php index e1f47115..9ff6a6a8 100644 --- a/core/um-actions-form.php +++ b/core/um-actions-form.php @@ -152,8 +152,9 @@ $form_id = $args['form_id']; $mode = $args['mode']; $fields = unserialize( $args['custom_fields'] ); - - if ( get_post_meta( $form_id, '_um_profile_photo_required', true ) && empty( $args['profile_photo'] ) ) { + $um_profile_photo = um_profile('profile_photo'); + + if ( get_post_meta( $form_id, '_um_profile_photo_required', true ) && ( empty( $args['profile_photo'] ) && empty( $um_profile_photo ) ) ) { $ultimatemember->form->add_error('profile_photo', sprintf(__('%s is required.','ultimatemember'), 'Profile Photo' ) ); }