WordPress.org

Make WordPress Core

Ticket #25046: 25046.diff

File 25046.diff, 607 bytes (added by jkudish, 7 years ago)
  • wp-includes/ms-functions.php

     
    378378        $is_email_address_unsafe = false;
    379379
    380380        if ( $banned_names && is_array( $banned_names ) ) {
     381
     382                // any comparisons we make should be case insensitive
     383                $banned_names = array_map( 'strtolower', $banned_names );
     384                $user_email = strtolower( $user_email );
     385
    381386                list( $email_local_part, $email_domain ) = explode( '@', $user_email );
    382387
    383388                foreach ( $banned_names as $banned_domain ) {