add a cap check at the top of ms-delete-site.php. see #11644
git-svn-id: https://develop.svn.wordpress.org/trunk@12829 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
5a13380cf4
commit
39c598f7f6
@ -4,6 +4,10 @@ require_once('admin.php');
|
||||
if ( !is_multisite() )
|
||||
wp_die( __('Multisite support is not enabled.') );
|
||||
|
||||
// @todo Create a delete blog cap.
|
||||
if ( ! current_user_can('manage_options') )
|
||||
wp_die(__('You do not have sufficient permissions to delete this blog.'));
|
||||
|
||||
$action = isset($_POST['action']) ? $_POST['action'] : 'splash';
|
||||
|
||||
$title = __('Delete Blog');
|
||||
|
Loading…
Reference in New Issue
Block a user