[BUG] Redirect link not working for users with complex name
-
/login-with-ajax.php:735
$redirect = str_replace('%USERNAME%', $user->user_login, $redirect);
should be :
$redirect = str_replace('%USERNAME%', $user->user_nicename, $redirect);
user_login can be quite all over the place. user_nicename is a sanitized field.
This cause errors on a BuddyPress install
redirect format :
https://site.com/directory/%USERNAME%/profile/
can cause :
https://site.com/directory/John%20Smith/profile/
should be :
https://site.com/directory/john-smith/profile/
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘[BUG] Redirect link not working for users with complex name’ is closed to new replies.