[wp-trac] [WordPress Trac] #21195: get_avatar_url
WordPress Trac
noreply at wordpress.org
Thu Dec 18 08:39:20 UTC 2014
#21195: get_avatar_url
-----------------------------+-----------------------------
Reporter: pathawks | Owner:
Type: feature request | Status: new
Priority: normal | Milestone: Future Release
Component: General | Version: 2.5
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
-----------------------------+-----------------------------
Comment (by bgerhardt1488):
Replying to [ticket:21195 pathawks]:
> 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: <https://core.trac.wordpress.org/ticket/21195#comment:51>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list