[wp-trac] [WordPress Trac] #39123: Allow usernames to be changed by administrators

WordPress Trac noreply at wordpress.org
Thu Aug 3 16:06:20 UTC 2017


#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 johnjamesjacoby):

 On the implementation side, I'd prefer to see the who-can-edit-what be
 settled via `map_meta_cap()`, via something like `current_user_can(
 'edit_user_login', $user_id )`.

 The aforementioned plugin(s) require awkward work-arounds because there is
 no intercept point for this decision.

 * It's sane to leave this "off by default" because of the slug & author-
 archive redirection issue.
 * It's sane to allow admins (or multisite super-admins) to measure the
 risks against the reward and choose whether it's worth it.
 * It's sane to want certain/any/all other users to also have this
 capability, especially setups where the author slug serves as a vanity
 feature (BuddyPress, bbPress, etc...)

 Using a mapped meta-cap is the way to go here. Whether or not (and to what
 extent) to update the UI to reflect the new behavior is related but
 separate discussion IMO.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/39123#comment:16>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list