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

buddypress-trac noreply at wordpress.org
Wed Sep 16 09:38:49 UTC 2015


#6622: Missed $args parameter in bp_core_fetch_avatar_filter()
---------------------------+-----------------------------
 Reporter:  WeddyWood      |      Owner:
     Type:  defect (bug)   |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  API - Avatars  |    Version:  2.3.3
 Severity:  normal         |   Keywords:
---------------------------+-----------------------------
 $args parameter is missed in bp_core_fetch_avatar_filter() function,
 however this parameter exist in default get_avatar() WordPress function.
 Thus it is impossible to use class (for example) parameter for avatar.

 Default WordPress get_avatar() function accept setting this $args
 parameter in filter:


 {{{
 apply_filters( 'get_avatar', $avatar, $id_or_email, $args['size'],
 $args['default'], $args['alt'], $args );
 }}}


 Therefore now bp_core_fetch_avatar_filter() function breaks default
 get_avatar behaviour.

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


More information about the buddypress-trac mailing list