[wp-trac] [WordPress Trac] #22361: Users with multiple roles show incorrect primary role in list-table and when editing

WordPress Trac noreply at wordpress.org
Mon Nov 19 19:16:32 UTC 2012


#22361: Users with multiple roles show incorrect primary role in list-table and
when editing
----------------------------------------+------------------
 Reporter:  johnjamesjacoby             |       Owner:
     Type:  defect (bug)                |      Status:  new
 Priority:  normal                      |   Milestone:  3.5
Component:  Role/Capability             |     Version:
 Severity:  critical                    |  Resolution:
 Keywords:  has-patch needs-unit-tests  |
----------------------------------------+------------------

Comment (by nacin):

 In [changeset:"22686"]:
 {{{
 #!CommitTicketReference repository="" revision="22686"
 Less insane multiple role handling in the users list table.

 If the user has more than one role, opt to show the first role that is
 'editable', if present. Otherwise, fall back to the remaining roles.

 In the future, we should show a comma-separated list of all roles,
 editable or otherwise, and this list should be filterable, either by user,
 or by the roles which can appear. Probably both.

 In multisite, only hide users that have no capabilities (in case they
 possess a leftover, empty wp_xx_capabilities key from the MU days),
 not users that have no role, as they may have a cap but no role.

 see #22361. fixes #17860.
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/22361#comment:8>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list