Make WordPress Core

Ticket #20459: 20459.patch

File 20459.patch, 1.2 KB (added by boonebgorges, 13 years ago)
  • wp-includes/ms-functions.php

     
    455455        if ( in_array( $user_name, $illegal_names ) == true )
    456456                $errors->add('user_name',  __( 'That username is not allowed.' ) );
    457457
    458         if ( is_email_address_unsafe( $user_email ) )
     458        if ( is_email_address_unsafe( $user_email ) && !is_super_admin() )
    459459                $errors->add('user_email',  __('You cannot use that email address to signup. We are having problems with them blocking some of our email. Please use another email provider.'));
    460460
    461461        if ( strlen( $user_name ) < 4 )
     
    474474                $errors->add('user_email', __( 'Please enter a correct email address.' ) );
    475475
    476476        $limited_email_domains = get_site_option( 'limited_email_domains' );
    477         if ( is_array( $limited_email_domains ) && empty( $limited_email_domains ) == false ) {
     477        if ( is_array( $limited_email_domains ) && empty( $limited_email_domains ) == false && !is_super_admin() ) {
    478478                $emaildomain = substr( $user_email, 1 + strpos( $user_email, '@' ) );
    479479                if ( in_array( $emaildomain, $limited_email_domains ) == false )
    480480                        $errors->add('user_email', __('Sorry, that email address is not allowed!'));