[wp-trac] [WordPress Trac] #54554: Allow returning content for wp_dropdown_roles()
WordPress Trac
noreply at wordpress.org
Mon Jul 25 20:25:51 UTC 2022
#54554: Allow returning content for wp_dropdown_roles()
-----------------------------+---------------------
Reporter: nithi22 | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: 6.1
Component: Role/Capability | Version:
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
-----------------------------+---------------------
Comment (by audrasjb):
Ah, wait, no. In the above example, `$roles` is not an array. It's a
string.
I can hardly see how to use it in real life. We should probably just
return an array of user roles. Probably just returning the content of
`$editable_roles` should be enough.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/54554#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list