WordPress.org

Make WordPress Core

Ticket #5918: registration.php.patch

File registration.php.patch, 779 bytes (added by dwright, 4 years ago)

dont enforce strict on registration names patch, against revision 12187

  • wp-includes/registration.php

     
    4747 * @return bool Whether username given is valid 
    4848 */ 
    4949function validate_username( $username ) { 
    50         $sanitized = sanitize_user( $username, true ); 
     50        $sanitized = sanitize_user( $username ); 
    5151        $valid = ( $sanitized == $username ); 
    5252        return apply_filters( 'validate_username', $valid, $username ); 
    5353} 
     
    116116                $user_pass = wp_hash_password($user_pass); 
    117117        } 
    118118 
    119         $user_login = sanitize_user($user_login, true); 
     119        $user_login = sanitize_user($user_login); 
    120120        $user_login = apply_filters('pre_user_login', $user_login); 
    121121 
    122122        if ( empty($user_nicename) )