12 years, 1 month ago
Is there a Gravatar Setting in the BP core functions that governs the rating of images allowed? I’d like to adjust the rating. Thanks.
N/M I found it in the bp-core-avatars.php line 245. I just added &r=x to the URL being built.
@lunakm: rather than modifying the core code, which will need changing every time BP is upgraded, you might be better trying to do it as a filter.
I suspect the filter you’d want to work with is bp_core_fetch_avatar_url. Try hooking a function onto this (in your bp-custom.php file) that appends the &r=x to the url.
It might be worth raising it as an enhancement request for future BP releases, to give more control over the parameters that can be passed to Gravatar.
Thank you Roger, what would be nice is if BP used WordPress’ setting for Gravatar rating. It uses it for the default image…
Definitely add this as an enhancement ticket on Trac:
See also: WordPress.org •
Follow BuddyPress on Twitter •
Contact Us •
Terms of Service