This PR switches our filter from using the get_avatar hook use an earlier hook (get_avatar_data) to filter the URL of the avatar file. This way, both get_avatar and get_avatar_url can reliably be used to get the user's local avatar through Basic User Avatars.
I kept the filter on get_avatar only to preserve the filter we offer (basic_user_avatar) in case this was being used by anyone.
This PR switches our filter from using the get_avatar hook use an earlier hook (get_avatar_data) to filter the URL of the avatar file. This way, both get_avatar and get_avatar_url can reliably be used to get the user's local avatar through Basic User Avatars.
I kept the filter on get_avatar only to preserve the filter we offer (
basic_user_avatar
) in case this was being used by anyone.Resolves https://github.com/strangerstudios/Basic-User-Avatars/issues/13