[wp-trac] [WordPress Trac] #39205: Replace is_super_admin() check with current_user_can( 'upgrade_database' )

WordPress Trac noreply at wordpress.org
Mon Apr 10 21:10:51 UTC 2017


#39205: Replace is_super_admin() check with current_user_can( 'upgrade_database' )
-------------------------------------------------+-------------------------
 Reporter:  dhanendran                           |       Owner:  flixos90
     Type:  enhancement                          |      Status:  closed
 Priority:  normal                               |   Milestone:  4.8
Component:  Role/Capability                      |     Version:
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  has-patch needs-dev-note has-unit-   |     Focuses:  multisite
  tests commit                                   |
-------------------------------------------------+-------------------------
Changes (by flixos90):

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


Comment:

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


More information about the wp-trac mailing list