[buddypress-trac] [BuddyPress] #1308: Remove avatar Ids to allow w3c validated pages

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Tue Nov 3 23:53:44 UTC 2009

#1308: Remove avatar Ids to allow w3c validated pages
Reporter:  sbrajesh     |       Owner:       
    Type:  enhancement  |      Status:  new  
Priority:  minor        |   Milestone:  1.1.3
Keywords:  w3c,avatar   |  
 well,since avatars have ids and say when the same avatar appears multiple
 times on a page,the page gets multiple element with same Ids.
 It creates troubles in validating the themes.
 A better solution will be to just remove the id from the avatar image.

 We can edit bp_core_fetch_avatar and make it possible.

 There can be a simple fix by changing this line in bp_core_fetch_avatar.

 return apply_filters( 'bp_core_fetch_avatar', "<img src='{$avatar_url}'
 alt='{$alt}' id='{$css_id}' class='{$class}'{$html_width}{$html_height}
 />", $params );


 return apply_filters( 'bp_core_fetch_avatar', "<img src='{$avatar_url}'
 alt='{$alt}' class='{$class}'{$html_width}{$html_height} />", $params );

 however,if you want to disable computation of ids(as it is not required
 now,you will have to edit a few other lines too)

Ticket URL: <http://trac.buddypress.org/ticket/1308>
BuddyPress <http://buddypress.org/>

More information about the buddypress-trac mailing list