[wp-trac] [WordPress Trac] #23430: sanitize_user() disallows + in usernames causes problem for email as username
WordPress Trac
noreply at wordpress.org
Sat Feb 9 08:48:32 UTC 2013
#23430: sanitize_user() disallows + in usernames causes problem for email as
username
-----------------------------+-------------------------
Reporter: jb510 | Type: enhancement
Status: new | Priority: normal
Milestone: Awaiting Review | Component: Users
Version: 3.5.1 | Severity: minor
Keywords: |
-----------------------------+-------------------------
I want to use email addresses as usernames which seems to work fine,
except sanitize_user() doesn't allow a + in the username and my email
addresses have + in them.
Google/gmail allows one to use a + modifier on emails like so:
user+admin at gmail.com, user+editor at gmail.com, user+author at gmail.com, etc...
I often use this to get around WordPress's requirement for unique email
addresses but it's also intended for and useful in filtering:
user+blog1 at gmail.com, user+blog2 at gmail.com, etc...
Is there a reason we can't allow +'s in usernames or could it be moved to
the strict case only?
See formatting.php:892
--
Ticket URL: <http://core.trac.wordpress.org/ticket/23430>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list