[wp-trac] [WordPress Trac] #34608: Add role display name to WP_Role object
WordPress Trac
noreply at wordpress.org
Fri Apr 8 12:39:13 UTC 2016
#34608: Add role display name to WP_Role object
-----------------------------+------------------------------
Reporter: jdgrimes | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Role/Capability | Version:
Severity: normal | Resolution:
Keywords: needs-patch | Focuses:
-----------------------------+------------------------------
Comment (by jdgrimes):
Replying to [comment:2 andizer]:
> I just added a patch. I hope I did implement the two suggested methods
well.
I think that `$this->name` is just the slug, and `translate_role_name()`
needs to be passed the `display_name` (which isn't on the `WP_Role`
object). So we also need to change things so that `WP_Role` is constructed
with the display name too, or else have `WP_Role` retrieve it from
`WP_Roles::get_names()`. (It's all very confusing, I know!)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34608#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list