Make WordPress Core


Ignore:
Timestamp:
03/08/2015 02:09:25 AM (9 years ago)
Author:
jeremyfelt
Message:

Introduce delete_site meta capability.

Map delete_site as a meta capability to manage_options so that the ability to delete sites can be more granularly managed for individual site administrators on a multisite network.

Props thomaswm.

Fixes #30470.

File:
1 edited

Legend:

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

    r31403 r31673  
    1313    wp_die( __( 'Multisite support is not enabled.' ) );
    1414
    15 // @todo Create a delete blog cap.
    16 if ( ! current_user_can( 'manage_options' ) )
     15if ( ! current_user_can( 'delete_site' ) )
    1716    wp_die(__( 'You do not have sufficient permissions to delete this site.'));
    1817
Note: See TracChangeset for help on using the changeset viewer.