Make WordPress Core

Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#14813 closed defect (bug) (invalid)

wp_dropdown_roles should use names from $wp_roles->role_names

Reported by: joehoyle Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: General Keywords:
Focuses: Cc:


Currently wp_dropdown_roles() uses the name of the roles from $details->name, shouldn't it instead get the name from $wp_roles->role_names[$role] array?

See http://core.trac.wordpress.org/browser/trunk/wp-admin/includes/template.php#L721 for where I mean.

Change History (4)

#1 @t31os_
8 years ago

See where get_editable_roles gets it's data from.


That's exactly where the data is coming from already... ;)

#2 @joehoyle
8 years ago

Ahh makes sense - I was just updating the $role_names[] array on global $wp_roles; Should that not be supported? Seems funny to have the nicenames in an array - then also in the Role array

#3 @t31os_
8 years ago

  • Resolution set to invalid
  • Status changed from new to closed

I'm not sure i follow your question joe, can you clarify?

Closing the ticket as i think i've addressed your initial concern/question.. :)

#4 @scribu
8 years ago

  • Milestone Awaiting Review deleted
Note: See TracTickets for help on using tickets.