Ticket #27317: 27317.patch
File 27317.patch, 585 bytes (added by , 11 years ago) |
---|
-
user.php
1532 1532 * @param string $user_login Username after it has been sanitized. 1533 1533 */ 1534 1534 $user_login = apply_filters( 'pre_user_login', $user_login ); 1535 if ( is_wp_error($user_login) ) //Test if filter returned a WP_error object. 1536 return $user_login; //Let's return the error. 1535 1537 1538 1536 1539 //Remove any non-printable chars from the login string to see if we have ended up with an empty username 1537 1540 $user_login = trim($user_login); 1538 1541