Make WordPress Core

Opened 21 years ago

Closed 21 years ago

Last modified 20 years ago

#2338 closed defect (bug) (fixed)

Users page shows no role for some users

Reported by: ringmaster Owned by: ringmaster
Priority: normal Milestone:
Component: Administration Version: 1.2
Severity: normal Keywords: user listing bg|has-patch
Cc: Focuses:

Description

Sometimes when a role is reset for a user, the role title does not appear on the pages for users with that role.

The code incorrectly assumes that the 0 index of the $user->roles array holds the user's role, when the first index in the array might actually be > 0.

The included patch pulls the first item from the beginning of a copy of that array for use as the user's role, instead of assuming a 0 index.

Attachments (1)

users.php.diff​ (390 bytes ) - added by ringmaster 21 years ago.
Described in ticket body

Download all attachments as: .zip

Change History (3)

@ringmaster
21 years ago

Described in ticket body

#1 @ryan
21 years ago

  • Resolution → fixed
  • Status new → closed

#2 @(none)
20 years ago

  • Milestone 2.0.1

Milestone 2.0.1 deleted

Note: See TracTickets for help on using tickets.