WordPress.org

Make WordPress Core

Ticket #15706: 15706.diff

File 15706.diff, 821 bytes (added by markjaquith, 10 years ago)
  • wp-includes/ms-functions.php

    function wpmu_validate_user_signup($user_name, $user_email) { 
    504504        $limited_email_domains = get_site_option( 'limited_email_domains' );
    505505        if ( is_array( $limited_email_domains ) && empty( $limited_email_domains ) == false ) {
    506506                $emaildomain = substr( $user_email, 1 + strpos( $user_email, '@' ) );
    507                 if ( in_array( $emaildomain, $limited_email_domains ) == false )
     507                if ( ! apply_filters( 'limited_email_domains_check', in_array( $emaildomain, $limited_email_domains ), $emaildomain, $limited_email_domains ) )
    508508                        $errors->add('user_email', __('Sorry, that email address is not allowed!'));
    509509        }
    510510