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-includes/capabilities.php

    r31555 r31673  
    13461346        $caps[] = 'edit_theme_options';
    13471347        break;
     1348    case 'delete_site':
     1349        $caps[] = 'manage_options';
     1350        break;
    13481351    default:
    13491352        // Handle meta capabilities for custom post types.
Note: See TracChangeset for help on using the changeset viewer.