mirror of
git://develop.git.wordpress.org/
synced 2025-02-28 02:22:25 +01:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@22686 602fd350-edb4-49c9-b593-d223f7449a82