Make WordPress Core


Ignore:
Timestamp:
03/08/2015 02:09:25 AM (10 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/menu.php

    r31427 r31673  
    229229    $submenu['tools.php'][15] = array( __('Export'), 'export', 'export.php' );
    230230    if ( is_multisite() && !is_main_site() )
    231         $submenu['tools.php'][25] = array( __('Delete Site'), 'manage_options', 'ms-delete-site.php' );
     231        $submenu['tools.php'][25] = array( __('Delete Site'), 'delete_site', 'ms-delete-site.php' );
    232232    if ( ! is_multisite() && defined('WP_ALLOW_MULTISITE') && WP_ALLOW_MULTISITE )
    233233        $submenu['tools.php'][50] = array(__('Network Setup'), 'manage_options', 'network.php');
Note: See TracChangeset for help on using the changeset viewer.