[wp-trac] [WordPress Trac] #39202: Replace is_super_admin() checks with current_user_can( 'manage_network_users' ) in wp-admin/user-new.php (lines 40 and 316)

WordPress Trac noreply at wordpress.org
Fri Jan 20 17:48:34 UTC 2017


#39202: Replace is_super_admin() checks with current_user_can(
'manage_network_users' ) in wp-admin/user-new.php (lines 40 and 316)
-----------------------------+------------------------
 Reporter:  dhanendran       |       Owner:  flixos90
     Type:  enhancement      |      Status:  closed
 Priority:  normal           |   Milestone:  4.8
Component:  Role/Capability  |     Version:
 Severity:  normal           |  Resolution:  fixed
 Keywords:  has-patch        |     Focuses:  multisite
-----------------------------+------------------------
Changes (by flixos90):

 * status:  reviewing => closed
 * resolution:   => fixed


Comment:

 In [changeset:"39935"]:
 {{{
 #!CommitTicketReference repository="" revision="39935"
 Multisite: Replace `is_super_admin()` with `manage_network_users` when
 trying to add an existing user via username.

 Props dhanendran.
 Fixes #39202. See #37616.
 }}}

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


More information about the wp-trac mailing list