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:
Ryan Boren 2010-01-25 22:50:36 +00:00
parent 5a13380cf4
commit 39c598f7f6
1 changed files with 4 additions and 0 deletions

View File

@ -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');