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

WordPress Trac wp-trac at lists.automattic.com
Sun Jul 8 18:51:40 UTC 2012


#21195: get_avatar_url
--------------------------+-----------------------------
 Reporter:  pathawks      |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 There should be a separate function to just get an avatar URL, versus
 getting the image wrapped in an <img> tag. This function should pass the
 avatar URL through a filter before returning it.
 '''get_avatar''' would then call this function, rather than generating a
 Gravatar URL on its own.


 This way, a plugin can grab a user's avatar image without relying on regex
 to extract the image from the <img> tag, and in a way that is compatible
 with plugins that replace Gravatar.

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


More information about the wp-trac mailing list