[buddypress-trac] [BuddyPress Trac] #7424: filter get_avatar_url to parse URLs from BP avatars

buddypress-trac noreply at wordpress.org
Mon Jan 23 17:26:07 UTC 2017


#7424: filter get_avatar_url to parse URLs from BP avatars
-------------------------+-----------------------------
 Reporter:  elhardoum    |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Core         |    Version:
 Severity:  normal       |   Keywords:  has-patch
-------------------------+-----------------------------
 Hello,

 This is my very first ticket and I hope I am not breaking something.

 BuddyPress is
 [filtering](https://buddypress.trac.wordpress.org/browser/tags/2.7.4/src
 /bp-core/bp-core-avatars.php#L1466)
 [`get_avatar()`](https://developer.wordpress.org/reference/functions/get_avatar/)
 correctly to parse the custom avatars uploaded via member profile which is
 neat. However, it is not filtering
 [`get_avatar_url()`](https://developer.wordpress.org/reference/functions/get_avatar_url/)
 which is a WP function which basically used in most themes or plugins to
 get the avatar URLs easily rather than to decode the HTML output of
 get_avatar to get the image source attribute (`src`).

 I hope this makes sense. Here's a paste of code for this filter
 http://pastebin.com/nQEEa7De

 Thanks,
 Samuel

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


More information about the buddypress-trac mailing list