WordPress.org

Make WordPress Core

Changeset 11397


Ignore:
Timestamp:
05/19/09 15:56:53 (5 years ago)
Author:
ryan
Message:

Allow case-insensitive logins. Props mdawaffe. fixes #5472

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/user.php

    r11380 r11397  
    8686    $userdata = get_userdatabylogin($username); 
    8787 
    88     if ( !$userdata || ($userdata->user_login != $username) ) { 
     88    if ( !$userdata ) { 
    8989        return new WP_Error('invalid_username', sprintf(__('<strong>ERROR</strong>: Invalid username. <a href="%s" title="Password Lost and Found">Lost your password</a>?'), site_url('wp-login.php?action=lostpassword', 'login'))); 
    9090    } 
Note: See TracChangeset for help on using the changeset viewer.