[wp-trac] [WordPress Trac] #39206: Replace `is_super_admin()` with `current_user_can( 'manage_options' )` in wp-admin/network.php

WordPress Trac noreply at wordpress.org
Fri Apr 7 12:52:28 UTC 2017


#39206: Replace `is_super_admin()` with `current_user_can( 'manage_options' )` in
wp-admin/network.php
-------------------------------------------------+-------------------------
 Reporter:  ashokkumar24                         |       Owner:  flixos90
     Type:  enhancement                          |      Status:  closed
 Priority:  normal                               |   Milestone:  4.8
Component:  Role/Capability                      |     Version:
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests needs-dev-  |     Focuses:  multisite
  note                                           |
-------------------------------------------------+-------------------------
Changes (by flixos90):

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


Comment:

 In [changeset:"40390"]:
 {{{
 #!CommitTicketReference repository="" revision="40390"
 Multisite: Introduce a `setup_network` capability for setting up
 multisite.

 `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/39206#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list