Ticket #24618: enhance.vun.diff
File enhance.vun.diff, 466 bytes (added by , 11 years ago) |
---|
-
wp-includes/user.php
diff --git wp-includes/user.php wp-includes/user.php index f22b046..a99fde9 100644
function email_exists( $email ) { 1226 1226 */ 1227 1227 function validate_username( $username ) { 1228 1228 $sanitized = sanitize_user( $username, true ); 1229 $valid = ( $sanitized == $username );1229 $valid = !empty($sanitized) ? ( $sanitized == $username ) : false; 1230 1230 return apply_filters( 'validate_username', $valid, $username ); 1231 1231 } 1232 1232