strangerstudios / basic-user-avatars

Add an avatar upload field on frontend pages and on the Edit Profile screen so users and admins can manage custom profile pictures without Gravatar.
https://wordpress.org/plugins/basic-user-avatars/
39 stars 34 forks source link

Filter get_avatar_url() #13

Closed jaredatch closed 3 years ago

jaredatch commented 8 years ago

This function ignores our uploaded avatars since we do not filter it. Would be nice for us to do that.

https://core.trac.wordpress.org/browser/tags/4.3.1/src/wp-includes/link-template.php#L3678

kimcoleman commented 3 years ago

We had a user comment on the .org support area that they need this feature as well. Internal discussions brought up whether updating the get_avatar method to instead be a filter on the get_avatar_data WP hook. This hook is used by both the get_avatar and get_avatar_url functions in WP so it would serve both purposes if we just use this single approach.

See:

kimcoleman commented 3 years ago

This will be included in the next release. I am closing this issue now and will follow up in the Pull Request to be merged.