[buddypress-trac] [BuddyPress Trac] #6622: Missed $args parameter in bp_core_fetch_avatar_filter()

buddypress-trac noreply at wordpress.org
Mon Oct 19 20:09:00 UTC 2015


#6622: Missed $args parameter in bp_core_fetch_avatar_filter()
---------------------------+---------------------
 Reporter:  WeddyWood      |       Owner:  r-a-y
     Type:  defect (bug)   |      Status:  closed
 Priority:  high           |   Milestone:  2.4
Component:  API - Avatars  |     Version:  2.3.0
 Severity:  normal         |  Resolution:  fixed
 Keywords:  has-patch      |
---------------------------+---------------------
Changes (by r-a-y):

 * owner:   => r-a-y
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"10287"]:
 {{{
 #!CommitTicketReference repository="" revision="10287"
 Avatars: Support new parameters from WordPress 4.2.0 when filtering
 `'get_avatar'`.

 WordPress 4.2.0 added a new parameter - `$args` - to their `'get_avatar'`
 filter.  This `$args` parameter is an array that houses additional options
 including the width, height and CSS class, as well as the following
 parameters:

 - `'extra_attr'` - unsanitized HTML attributes to add to the `<img>`
 element.
 - `'scheme'` - URL scheme to use.
 - `'rating'` - Gravatar rating.
 - `'force_default'` - Only applicable to Gravatars. Always use the default
 image even if a valid Gravatar exists.

 Consequently, `bp_core_fetch_avatar()` now supports the listed options
 above as well.

 Fixes #6622.
 }}}

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6622#comment:7>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list