Ticket #24618: 24618.patch
File 24618.patch, 472 bytes (added by , 11 years ago) |
---|
-
wp-includes/user.php
1413 1413 */ 1414 1414 function validate_username( $username ) { 1415 1415 $sanitized = sanitize_user( $username, true ); 1416 $valid = ( $sanitized == $username );1416 $valid = ( $sanitized == $username && ! empty( $sanitized ) ); 1417 1417 /** 1418 1418 * Filter whether the provided username is valid or not. 1419 1419 *