|Reported by:||pathawks||Owned by:|
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.
Change History (96)
- Keywords needs-refresh added
- Milestone changed from Awaiting Review to Future Release
9 months ago
- Resolution fixed deleted
- Status changed from closed to reopened
- Keywords has-patch removed
- Resolution set to fixed
- Status changed from reopened to closed