The format_username() function should expect a full user account object, not a half-assed object loaded from five fields in the database. This messes up modules like Realname which pass on the user object to the token system, which also expects a full user object.

Comments

dave reid’s picture

Status: Active » Needs review
StatusFileSize
new2.5 KB
BenK’s picture

Subscribing

haydeniv’s picture

I think this is going to be a 7.x only change because Views is in core now and I believe this page will be replaced by views.

haydeniv’s picture

Issue tags: -realname, -format_username

Status: Needs review » Needs work

The last submitted patch, 976062-user-admin-account-load-D7.patch, failed testing.

Status: Needs work » Closed (outdated)

Automatically closed because Drupal 7 security and bugfix support has ended as of 5 January 2025. If the issue verifiably applies to later versions, please reopen with details and update the version.