Make WordPress Core


Ignore:
Timestamp:
06/05/2006 04:52:21 PM (18 years ago)
Author:
ryan
Message:

Add more fine grained user management caps. Part 1. #2775

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/capabilities.php

    r3772 r3846  
    273273
    274274    switch ($cap) {
     275    case 'delete_user':
     276        $caps[] = 'delete_users';
     277        break;
     278    case 'edit_user':
     279        $caps[] = 'edit_users';
     280        break;
    275281    case 'delete_post':
    276282        $author_data = get_userdata($user_id);
Note: See TracChangeset for help on using the changeset viewer.