Changeset 40394 for trunk/src/wp-includes/capabilities.php
- Timestamp:
- 04/07/2017 02:35:39 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/capabilities.php
r40390 r40394 363 363 if ( defined( 'DISALLOW_FILE_EDIT' ) && DISALLOW_FILE_EDIT ) 364 364 $caps[] = 'do_not_allow'; 365 elseif ( defined( 'DISALLOW_FILE_MODS' ) && DISALLOW_FILE_MODS)365 elseif ( wp_disallow_file_mods( 'capability_edit_themes' ) ) 366 366 $caps[] = 'do_not_allow'; 367 367 elseif ( is_multisite() && ! is_super_admin( $user_id ) ) … … 381 381 // Disallow anything that creates, deletes, or updates core, plugin, or theme files. 382 382 // Files in uploads are excepted. 383 if ( defined( 'DISALLOW_FILE_MODS' ) && DISALLOW_FILE_MODS) {383 if ( wp_disallow_file_mods( 'capability_update_core' ) ) { 384 384 $caps[] = 'do_not_allow'; 385 385 } elseif ( is_multisite() && ! is_super_admin( $user_id ) ) {
Note: See TracChangeset
for help on using the changeset viewer.