[wp-trac] [WordPress Trac] #30470: Introduce "delete_blog" capability
WordPress Trac
noreply at wordpress.org
Tue Nov 25 04:17:08 UTC 2014
#30470: Introduce "delete_blog" capability
--------------------------------+------------------------------
Reporter: thomaswm | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Networks and Sites | Version:
Severity: normal | Resolution:
Keywords: | Focuses: multisite
--------------------------------+------------------------------
Comment (by jeremyfelt):
Thanks for the ticket, @thomaswm!
This is a tough one. I completely agree that a `delete_blog` (or really
`delete_site`) capability should be available. However, since
`manage_options` has been used for years, we can't necessarily swap the
two out. I'm not sure how likely it is that custom requirements would
remove `manage_options` from the administrator role, but it's possible.
It's probably more likely that `manage_options` has been added to a custom
set of users in some cases.
We could map `delete_site` to `manage_options` in `map_meta_cap()`...
possibly the safest bet as this would default to everyone with
`manage_options` capabilities.
Ideas welcome. :)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/30470#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list