[wp-trac] [WordPress Trac] #38201: Several meta capabilities have no handling in map_meta_cap()
WordPress Trac
noreply at wordpress.org
Fri Sep 30 22:01:50 UTC 2016
#38201: Several meta capabilities have no handling in map_meta_cap()
-----------------------------+-------------------------
Reporter: johnbillion | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 4.7
Component: Role/Capability | Version:
Severity: normal | Keywords: needs-patch
Focuses: |
-----------------------------+-------------------------
The following meta capabilities are used within core but do not have any
handling (no `case` statement) in `map_meta_cap()`. While this is
functionally fine, it does mean that it's not possible to complete the
meta capability tests in #38191.
* `create_sites`
* `delete_sites`
* `manage_network`
* `manage_sites`
* `manage_network_users`
* `manage_network_plugins`
* `manage_network_themes`
* `manage_network_options`
Meta capabilities with no handling in `map_meta_cap()` fall back to
requiring a primitive capability of the same name, so this is the
functionality that should occur in `map_meta_cap()`. This has no
functional change as these capabilities are only available to super
admins.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38201>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list