Make WordPress Core

Ticket #24618: 24618.patch

File 24618.patch, 472 bytes (added by mordauk, 11 years ago)
  • wp-includes/user.php

     
    14131413 */
    14141414function validate_username( $username ) {
    14151415        $sanitized = sanitize_user( $username, true );
    1416         $valid = ( $sanitized == $username );
     1416        $valid = ( $sanitized == $username && ! empty( $sanitized ) );
    14171417        /**
    14181418         * Filter whether the provided username is valid or not.
    14191419         *