Make WordPress Core


Ignore:
Timestamp:
11/06/2005 03:58:52 AM (18 years ago)
Author:
ryan
Message:

Show Role in profile and user edit. Don't allow users with edit_users caps to demote themselves. Props: davidhouse, ringmaster. fixes #1825

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/profile.php

    r2994 r2995  
    3131<input type="text" name="user_login" value="<?php echo $profiledata->user_login; ?>" disabled="disabled" />
    3232</label></p>
     33
     34<p><label><?php _e('Role: (no editing)') ?><br />
     35<input type="text" name="role" value="<?php echo $wp_roles->role_names[$profileuser->roles[0]] ?>" disabled="disabled" /></label></p>
     36
    3337<p><label><?php _e('First name:') ?><br />
    3438<input type="text" name="first_name" value="<?php echo $profiledata->first_name ?>" /></label></p>
Note: See TracChangeset for help on using the changeset viewer.