[wp-trac] [WordPress Trac] #37616: Replace `is_super_admin()` calls with real capability checks

WordPress Trac noreply at wordpress.org
Tue Jan 24 12:02:26 UTC 2017

#37616: Replace `is_super_admin()` calls with real capability checks
 Reporter:  flixos90         |       Owner:
     Type:  task (blessed)   |      Status:  reviewing
 Priority:  normal           |   Milestone:  4.8
Component:  Role/Capability  |     Version:
 Severity:  normal           |  Resolution:
 Keywords:  needs-patch      |     Focuses:  multisite

Comment (by flixos90):

 In [changeset:"39946"]:
 #!CommitTicketReference repository="" revision="39946"
 Multisite: Remove unnecessary `is_super_admin()` check when adding an
 existing user to a site.

 Prior to this change, a super admin user that is added to a site who they
 are already a member of would still get reinvited.

 Props supercoder.
 Fixes #39220. See #37616.

Ticket URL: <https://core.trac.wordpress.org/ticket/37616#comment:55>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list