[buddypress-trac] [BuddyPress Trac] #6989: Request: Allow Gravatar's "d" param to be filtered

buddypress-trac noreply at wordpress.org
Thu Mar 31 14:24:20 UTC 2016

#6989: Request: Allow Gravatar's "d" param to be filtered
 Reporter:  henry.wright  |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  API           |    Version:
 Severity:  normal        |   Keywords:
 Inside {{{bp_core_fetch_avatar()}}}, the {{{d}}} param is set like this:

 if ( 'gravatar_default' !== $default_grav ) {
     $url_args['d'] = $default_grav;

 {{{$default_grav}}} will be either wavatar, mm etc. These are the
 "default" default images (generated by Grav). But Gravatar also allows
 {{{d}}} to be a URL:

 Ref: https://en.gravatar.com/site/implement/images/#default-image

 Is it possible to add a filter which lets us change the value of the
 {{{d}}} param before it's passed to Gravatar?

 I'm thinking {{{$params}}} would be useful to have in hooked functions
 because from that we could get the user or group ID etc.

Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6989>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac

More information about the buddypress-trac mailing list