Changeset 31673
- Timestamp:
- 03/08/2015 02:09:25 AM (10 years ago)
- Location:
- trunk/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/menu.php
r31427 r31673 229 229 $submenu['tools.php'][15] = array( __('Export'), 'export', 'export.php' ); 230 230 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' ); 232 232 if ( ! is_multisite() && defined('WP_ALLOW_MULTISITE') && WP_ALLOW_MULTISITE ) 233 233 $submenu['tools.php'][50] = array(__('Network Setup'), 'manage_options', 'network.php'); -
trunk/src/wp-admin/ms-delete-site.php
r31403 r31673 13 13 wp_die( __( 'Multisite support is not enabled.' ) ); 14 14 15 // @todo Create a delete blog cap. 16 if ( ! current_user_can( 'manage_options' ) ) 15 if ( ! current_user_can( 'delete_site' ) ) 17 16 wp_die(__( 'You do not have sufficient permissions to delete this site.')); 18 17 -
trunk/src/wp-includes/capabilities.php
r31555 r31673 1346 1346 $caps[] = 'edit_theme_options'; 1347 1347 break; 1348 case 'delete_site': 1349 $caps[] = 'manage_options'; 1350 break; 1348 1351 default: 1349 1352 // Handle meta capabilities for custom post types.
Note: See TracChangeset
for help on using the changeset viewer.