Changeset 15561
- Timestamp:
- 09/04/2010 12:24:43 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/capabilities.php
r15480 r15561 799 799 case 'remove_user': 800 800 $caps[] = 'remove_users'; 801 break;802 case 'delete_user':803 $caps[] = 'delete_users';804 801 break; 805 802 case 'promote_user': … … 1029 1026 case 'delete_users': 1030 1027 // If multisite these caps are allowed only for super admins. 1031 if ( is_multisite() && !is_super_admin( $user_id ) ) 1028 if ( is_multisite() && !is_super_admin( $user_id ) ) { 1032 1029 $caps[] = 'do_not_allow'; 1033 else 1030 } else { 1031 if ( 'delete_user' == $cap ) 1032 $cap = 'delete_users'; 1034 1033 $caps[] = $cap; 1034 } 1035 1035 break; 1036 1036 case 'create_users':
Note: See TracChangeset
for help on using the changeset viewer.