Closed (fixed)
Project:
Administration menu
Version:
7.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
2 Aug 2012 at 17:17 UTC
Updated:
14 Feb 2013 at 16:10 UTC
Jump to comment: Most recent file
Comments
Comment #1
neochief commentedComment #3
sunCan you re-roll this patch against 3.x?
I also guess this change will require to add the #html => TRUE property to that link, since format_username() returns sanitized HTML already?
Comment #4
neochief commentedThere you go
Comment #5
rosk0Code is fine and works for me.
Comment #6
sunI'm actually not sure whether I can see a bug here — the return value of format_username() is also not sanitized, so the #html = TRUE is actually wrong. ;)
The only actual difference and "bugs" I can see are:
1) "Anonymous" is not used for the anonymous user. (but are you showing admin_menu to anonymous users?)
2)
hook_username_alter()is not invoked for the displayed username.I can only guess that you're actually looking for 2.?
Comment #7
sunWell, OK, committed, but without the #html = TRUE property. :)
Thanks for reporting, reviewing, and testing! Committed to all branches.
A new development snapshot will be available within the next 12 hours. This improvement will be available in the next official release.