[wp-trac] [WordPress Trac] #30470: Introduce "delete_blog" capability
WordPress Trac
noreply at wordpress.org
Sun Nov 23 22:36:36 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 | Keywords:
Focuses: multisite |
--------------------------------+-----------------------------
Currently, any user with administrator privileges for one blog within a
multisite network can delete this specific blog. While the creation of new
blogs can be restricted to network admins in the network options, there is
no such option for the deletion of blogs.
When I dug into the code of `wp-admin/ms-delete-site.php`, I stumbled upon
the following comment in line 15:
{{{
// @todo Create a delete blog cap.
if ( ! current_user_can( 'manage_options' ) )
wp_die(__( 'You do not have sufficient permissions to delete this
site.'));
}}}
I'd suggest to introduce such a capability. Then it would be possible to
control who is able to delete a blog within the multisite network.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/30470>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list