[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 11:52:59 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: reviewing
Priority: normal | Milestone: 4.8
Component: Role/Capability | Version:
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests | Focuses: multisite
--------------------------------------+------------------------
Changes (by flixos90):
* keywords: needs-patch needs-unit-tests => has-patch has-unit-tests
Comment:
[attachment:39206.diff] introduces a `setup_network` cap as discussed. In
single site, it falls back to `manage_options`; in multisite, it falls
back to `manage_network_options`. While I originally proposed
`manage_network` as fallback, `manage_network_options` is a better choice
since that has been previously used as a capability for the menu item in
multisite and aligns better with the single site fallback.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39206#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list