Changes from branches/3.6/wp-includes/ms-functions.php at r25198 to trunk/wp-includes/ms-functions.php at r24155
- File:
-
- 1 edited
-
trunk/wp-includes/ms-functions.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/ms-functions.php
r25198 r24155 379 379 380 380 if ( $banned_names && is_array( $banned_names ) ) { 381 $banned_names = array_map( 'strtolower', $banned_names ); 382 $normalized_email = strtolower( $user_email ); 383 384 list( $email_local_part, $email_domain ) = explode( '@', $normalized_email ); 381 list( $email_local_part, $email_domain ) = explode( '@', $user_email ); 385 382 386 383 foreach ( $banned_names as $banned_domain ) { … … 394 391 395 392 $dotted_domain = ".$banned_domain"; 396 if ( $dotted_domain === substr( $ normalized_email, -strlen( $dotted_domain ) ) ) {393 if ( $dotted_domain === substr( $user_email, -strlen( $dotted_domain ) ) ) { 397 394 $is_email_address_unsafe = true; 398 395 break; … … 902 899 return false; 903 900 901 $user = new WP_User( $user_id ); 902 904 903 // Newly created users have no roles or caps until they are added to a blog. 905 delete_user_option( $user_id, 'capabilities');904 delete_user_option( $user_id, $user->cap_key ); 906 905 delete_user_option( $user_id, 'user_level' ); 907 906
Note: See TracChangeset
for help on using the changeset viewer.