[wp-trac] [WordPress Trac] #21195: get_avatar_url

WordPress Trac wp-trac at lists.automattic.com
Thu Sep 13 11:02:27 UTC 2012


#21195: get_avatar_url
-----------------------------+------------------------------
 Reporter:  pathawks         |       Owner:
     Type:  feature request  |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  General          |     Version:  2.5
 Severity:  normal           |  Resolution:
 Keywords:  has-patch        |
-----------------------------+------------------------------

Comment (by mdgl):

 This would be useful also for people who just want to add standard HTML
 attributes to the <img> tag for a gravatar, for example "title" (for
 tooltip), "id" or further "class" names.

 You could argue, however that these simple cases should be catered for
 directly by get_avatar() with additional optional parameters in the same
 way as "alt".

 To do this kind of thing at the moment you need to either replace the
 function entirely or parse the returned <img> tag in a filter. Both
 methods are messy and error prone.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/21195#comment:10>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list