[wp-trac] [WordPress Trac] #11635: create a function that does this: wp_get_user_role()
WordPress Trac
wp-trac at lists.automattic.com
Sat Dec 26 19:32:17 UTC 2009
#11635: create a function that does this: wp_get_user_role()
--------------------------+-------------------------------------------------
Reporter: hakre | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.0
Component: General | Version: 2.9
Severity: normal | Keywords: developer-feedback
--------------------------+-------------------------------------------------
There is an TODO task left in the file wp-admin/user-edit.php around line
196. The original author should decide wether or not he wants to implement
the noted feature or to just drop it.
Related Code:
{{{
// Get the highest/primary role for this user
// TODO: create a function that does this: wp_get_user_role()
$user_roles = $profileuser->roles;
$user_role = array_shift($user_roles);
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/11635>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list