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

WordPress Trac noreply at wordpress.org
Mon Apr 10 21:10:50 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:                   |     Focuses:  multisite
-----------------------------+------------------------

Comment (by flixos90):

 In [changeset:"40404"]:
 {{{
 #!CommitTicketReference repository="" revision="40404"
 Multisite: Introduce an `upgrade_network` capability.

 Prior to this change, a mix of `is_super_admin()` calls and
 `manage_network` capability checks was used to determine whether the
 current user could upgrade the network. With this changeset a dedicated
 capability is introduced that allows more granular handling.

 Props dhanendran for the original patch.
 Fixes #39205. See #37616.
 }}}

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


More information about the wp-trac mailing list