- Timestamp:
- 02/10/2011 08:38:04 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.1/wp-admin/includes/class-wp-users-list-table.php
r17432 r17440 122 122 $actions = array(); 123 123 124 if ( !is_multisite() && current_user_can( 'delete_users' ) ) 125 $actions['delete'] = __( 'Delete' ); 126 else 127 $actions['remove'] = __( 'Remove' ); 124 if ( is_multisite() ) { 125 if ( current_user_can( 'remove_users' ) ) 126 $actions['remove'] = __( 'Remove' ); 127 } else { 128 if ( current_user_can( 'delete_users' ) ) 129 $actions['delete'] = __( 'Delete' ); 130 } 128 131 129 132 return $actions;
Note: See TracChangeset
for help on using the changeset viewer.