[wp-trac] [WordPress Trac] #36385: Request: Allow Gravatar's "d" param to be filtered
WordPress Trac
noreply at wordpress.org
Thu Mar 31 14:43:16 UTC 2016
#36385: Request: Allow Gravatar's "d" param to be filtered
-----------------------------+-----------------------------
Reporter: henry.wright | Owner:
Type: feature request | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 4.4.2
Severity: normal | Keywords:
Focuses: |
-----------------------------+-----------------------------
Inside {{{get_avatar_data()}}} the {{{d}}} param is set like this:
{{{
$url_args = array(
's' => $args['size'],
'd' => $args['default'],
'f' => $args['force_default'] ? 'y' : false,
'r' => $args['rating'],
);
}}}
Here, {{{$args['default']}}} will be something like {{{mm}}} or
{{{wavatar}}} etc. These are the "default" default images generated and
then served up by Gravatar. However, Gravatar also allows {{{d}}} to be a
custom URL. Let's call this a "custom" default image.
Ref: https://en.gravatar.com/site/implement/images/#default-image
Is it possible to add a filter so that we can filter the value of {{{d}}}?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/36385>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list