[wp-trac] [WordPress Trac] #22311: Cannot login when my loginname contains an "|" character
WordPress Trac
noreply at wordpress.org
Wed Oct 31 01:09:25 UTC 2012
#22311: Cannot login when my loginname contains an "|" character
--------------------------+------------------------------
Reporter: radek2212 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Users | Version:
Severity: normal | Resolution:
Keywords: close |
--------------------------+------------------------------
Changes (by SergeyBiryukov):
* keywords: reporter-feedback => close
Comment:
"|" isn't a valid username character in !WordPress. If you try to register
as P|ng|n in 3.4.2, you'll get an error message:
{{{
ERROR: This username is invalid because it uses illegal characters. Please
enter a valid username.
}}}
Current valid characters are listed in `sanitize_user()`: [[BR]]
http://core.trac.wordpress.org/browser/tags/3.4.2/wp-
includes/formatting.php#L881
You can, however, set your display name to whatever you like, including
P|ng|n or sk|Okimi.
If you still need your users to be able to register with "|" character in
usernames for some reason, `sanitize_user` filter can be used for that.
See an example plugin in #18666.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/22311#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list