[wp-trac] [WordPress Trac] #39799: Multisite User get "Sorry, that email address is not allowed!" although there Mail adresses are valid
WordPress Trac
noreply at wordpress.org
Mon Feb 6 17:09:08 UTC 2017
#39799: Multisite User get "Sorry, that email address is not allowed!" although
there Mail adresses are valid
--------------------------+-----------------------------
Reporter: webdevplan | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Users | Version: 4.7.1
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
The cause is in wp-includes/ms-functions.php, line 464:
if ( ! in_array( $emaildomain, $limited_email_domains ) )
{
$errors->add('user_email', __('Sorry, that email
address is not allowed!'));
}
it has to be:
'''if (in_array(''' $emaildomain, $limited_email_domains )
) {
$errors->add('user_email', __('Sorry, that email
address is not allowed!'));
}
without ! before "in_array"!
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39799>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list