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

WordPress Trac noreply at wordpress.org
Fri Apr 7 12:52: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:"40390"]:
 #!CommitTicketReference repository="" revision="40390"
 Multisite: Introduce a `setup_network` capability for setting up

 `setup_network` is a new meta capability that brings more granular control
 over the permissions to setup a multisite environment. In a non-multisite
 environment it falls back to `manage_options` while in a multisite it
 falls back to `manage_network_options`. The introduction of this
 capability furthermore allows replacing an `is_super_admin()` check.

 Props ashokkumar24 for the original patch.
 Fixes #39206. See #37616.

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

More information about the wp-trac mailing list