Wrong use of l function in theme_username
mcarrera - March 4, 2008 - 13:56
| Project: | Drupal |
| Version: | 7.x-dev |
| Component: | theme system |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | duplicate |
Description
The functions uses l as
$output = l($name, 'user/'. $object->uid, array('title' => t('View user profile.')));
while it should be
$output = l($name, 'user/'. $object->uid, array('attributes' => array('title' => t('View user profile.'))));
In order to correctly print the title attribute.
This happens twice in theme_username. I haven't checked other functions.

#1
Minor issue. The patch attached fixes it.
#2
Right, committed to Drupal 6. Moving to Drupal 7 for commit.
#3
This patch was duplicate of #227830: link attributes added to l() incorrectly.
#4