add a cap check at the top of ms-delete-site.php. see #11644
git-svn-id: http://svn.automattic.com/wordpress/trunk@12829 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
9fc2bef3d1
commit
8c256e5560
|
@ -4,6 +4,10 @@ require_once('admin.php');
|
||||||
if ( !is_multisite() )
|
if ( !is_multisite() )
|
||||||
wp_die( __('Multisite support is not enabled.') );
|
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';
|
$action = isset($_POST['action']) ? $_POST['action'] : 'splash';
|
||||||
|
|
||||||
$title = __('Delete Blog');
|
$title = __('Delete Blog');
|
||||||
|
|
Loading…
Reference in New Issue