Opened 14 years ago
Closed 14 years ago
#2697 closed enhancement (fixed)
Make it easier to shut off Gravatar
Reported by: | boonebgorges | Owned by: | boonebgorges |
---|---|---|---|
Milestone: | 1.5 | Priority: | minor |
Severity: | Version: | ||
Component: | Core | Keywords: | |
Cc: | westi |
Description
Related: #2367
Currently it's possible to disable Gravatar lookups by feeding no_grav=true to bp_core_fetch_avatar. However, bp_core_fetch_avatar() is called in many places throughout BuddyPress, so anyone who wants to disable Gravatar has to jump through a ton of hoops to make it work right.
A global constant, that when defined sets no_grav to true, would be an easy-to-implement solution. A similar check might have to happen in the signup avatar functions, and in the group creation process.
Attachments (1)
Change History (4)
Note: See
TracTickets for help on using
tickets.
Rather than a global constant a better way is just to pass the $no_grav value through a filter here:
https://trac.buddypress.org/browser/trunk/bp-core/bp-core-avatars.php#L210
e.g.