Changeset 39494
- Timestamp:
- 12/04/2016 10:06:36 PM (8 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/capabilities.php
r39464 r39494 423 423 break; 424 424 case 'delete_site': 425 $caps[] = 'manage_options'; 425 if ( is_multisite() ) { 426 $caps[] = 'manage_options'; 427 } else { 428 $caps[] = 'do_not_allow'; 429 } 426 430 break; 427 431 case 'edit_term': -
trunk/tests/phpunit/tests/user/capabilities.php
r39179 r39494 226 226 'manage_network_themes' => array(), 227 227 'manage_network_options' => array(), 228 'delete_site' => array(), 228 229 229 230 'upload_plugins' => array( 'administrator' ), 230 231 'upload_themes' => array( 'administrator' ), 231 232 'customize' => array( 'administrator' ), 232 'delete_site' => array( 'administrator' ),233 233 'add_users' => array( 'administrator' ), 234 234
Note: See TracChangeset
for help on using the changeset viewer.