WordPress.org

Make WordPress Core

Changeset 12829


Ignore:
Timestamp:
01/25/2010 10:50:36 PM (11 years ago)
Author:
ryan
Message:

add a cap check at the top of ms-delete-site.php. see #11644

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/ms-delete-site.php

    r12828 r12829  
    44if ( !is_multisite() )
    55    wp_die( __('Multisite support is not enabled.') );
     6
     7// @todo Create a delete blog cap.
     8if ( ! current_user_can('manage_options') )
     9    wp_die(__('You do not have sufficient permissions to delete this blog.'));
    610
    711$action = isset($_POST['action']) ? $_POST['action'] : 'splash';
Note: See TracChangeset for help on using the changeset viewer.