Changeset 22687
- Timestamp:
- 11/19/2012 07:23:54 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/user-edit.php
r21927 r22687 250 250 <td><select name="role" id="role"> 251 251 <?php 252 // Get the highest/primary role for this user252 // Compare user role against currently editable roles 253 253 // TODO: create a function that does this: wp_get_user_role() 254 $user_roles = $profileuser->roles;255 $user_role = array_shift($user_roles);254 $user_roles = array_intersect( array_values( $profileuser->roles ), array_keys( get_editable_roles() ) ); 255 $user_role = array_shift( $user_roles ); 256 256 257 257 // print the full list of roles with the primary one selected.
Note: See TracChangeset
for help on using the changeset viewer.