Changeset 13034 for trunk/wp-includes/capabilities.php
- Timestamp:
- 02/09/2010 12:07:52 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/capabilities.php
r12796 r13034 976 976 break; 977 977 case 'unfiltered_upload': 978 if ( defined('ALLOW_UNFILTERED_UPLOADS') && ALLOW_UNFILTERED_UPLOADS == true&& ( !is_multisite() || is_super_admin() ) )978 if ( defined('ALLOW_UNFILTERED_UPLOADS') && ALLOW_UNFILTERED_UPLOADS && ( !is_multisite() || is_super_admin() ) ) 979 979 $caps[] = $cap; 980 980 else 981 981 $caps[] = 'do_not_allow'; 982 982 break; 983 case 'edit_plugins': 984 case 'edit_themes': 985 if ( defined('DISALLOW_FILE_EDIT') && DISALLOW_FILE_EDIT ) { 986 $caps[] = 'do_not_allow'; 987 break; 988 } 989 // Fall through if not DISALLOW_FILE_EDIT. 983 990 case 'unfiltered_html': 984 991 case 'update_plugins': 985 992 case 'delete_plugins': 986 993 case 'install_plugins': 987 case 'edit_plugins':988 994 case 'update_themes': 989 995 case 'install_themes': 990 case 'edit_themes':991 996 case 'update_core': 992 997 case 'delete_user':
Note: See TracChangeset
for help on using the changeset viewer.