[wp-trac] [WordPress Trac] #39123: Allow usernames to be changed by administrators
WordPress Trac
noreply at wordpress.org
Wed Dec 7 12:23:03 UTC 2016
#39123: Allow usernames to be changed by administrators
-------------------------------------------------+-------------------------
Reporter: johnbillion | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting
Component: Users | Review
Severity: normal | Version:
Keywords: needs-patch needs-unit-tests 2nd- | Resolution:
opinion | Focuses: multisite
-------------------------------------------------+-------------------------
Comment (by tharsheblows):
> Any other considerations to make if usernames are allowed to be changed
by administrators?
These are slightly random but as I think of them.
- 99.9% of username changes I do are because someone has used their email
address or real name as their username and realised that's not a good
idea. (Despite clear warnings. I've tried so hard to make them stop.) In
this case, I don't want a canonical redirect from their old author archive
to their new one as that's a privacy leak. However, I can see the use in
that sometimes, so it'd be great if it were an option.
- huh, `nickname` isn't in the REST API.
- I'm currently forcing `nickname` (in the usermeta table) to be
`user_login` with no `nickname` / `display_name` changes allowed. To do
this I hook into the `insert_user_meta` filter - doing it this way is
necessary because of https://core.trac.wordpress.org/changeset/34505. I'm
mentioning that because I'm not sure how other people do the same thing or
if they do. This could be a case where I'm `_doing_it_wrong()`. I can fix
mine to work with whatever if you give me a hook, that's not a problem,
but it might be worth seeing how other people handle it and if we need to
worry about the nickname field.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39123#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list