The email you entered is incorrect when saving profile
-
If admin or user tries to save a profile page after changing some fields (not e-mail), an error The email you entered is incorrect is shown and the profile can not be saved. We allow editing e-mail address via profile as described here in documentation.
Reason is a bug in
includes/core/um-actions-form.php
line 927:} elseif ( 'profile' === $mode && $email_exists && $email_exists !== $submitted_data['user_id'] ) { UM()->form()->add_error( $key, __( 'The email you entered is incorrect', 'ultimate-member' ) );
Variable type of
$email_exists
isinteger
Variable type of$submitted_data['user_id']
isstring
So the
!==
comparison including type fails and the profile can not be saved.This is a serious bug which was introduced with 2.8.3, the comparison in 2.8.2 was
!=
so saving profile worked there.Ultimate Member 2.8.5, WordPress 6.4.4
- The topic ‘The email you entered is incorrect when saving profile’ is closed to new replies.