Changeset 40638 for trunk/src/wp-includes/capabilities.php
- Timestamp:
- 05/11/2017 07:23:45 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/capabilities.php
r40404 r40638 363 363 if ( defined( 'DISALLOW_FILE_EDIT' ) && DISALLOW_FILE_EDIT ) 364 364 $caps[] = 'do_not_allow'; 365 elseif ( wp_disallow_file_mods( 'capability_edit_themes' ) )365 elseif ( ! wp_is_file_mod_allowed( '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 ( wp_disallow_file_mods( 'capability_update_core' ) ) {383 if ( ! wp_is_file_mod_allowed( '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.