[wp-trac] [WordPress Trac] #43796: User Role with integer role name not showing in admin filter list
WordPress Trac
noreply at wordpress.org
Thu Apr 19 07:26:25 UTC 2018
#43796: User Role with integer role name not showing in admin filter list
-------------------------------------------+------------------------------
Reporter: aiyaz | Owner: (none)
Type: defect (bug) | Status: new
Priority: lowest | Milestone: Awaiting Review
Component: Users | Version: 4.9
Severity: normal | Resolution:
Keywords: needs-patch reporter-feedback | Focuses: administration
-------------------------------------------+------------------------------
Comment (by aiyaz):
Hi John,
Yes, I agree that `add_role()` expects a string as a parameter but when I
passed an integer, the role has been created but when I assigned that role
to any users, it doesn't show into the top filter.
actually, I'm looking for this because, I've synchronized user role with
external membership API and they are maintaining membership id as an
integer so to avoid an alias kind of thing, I need a patch that works with
integer and string as a role name in `add_role` function.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43796#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list