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

buddypress-trac noreply at wordpress.org
Fri Jul 7 18:05:46 UTC 2017


#7424: filter get_avatar_url to parse URLs from BP avatars
------------------------------+---------------------------
 Reporter:  elhardoum         |       Owner:  boonebgorges
     Type:  defect (bug)      |      Status:  reopened
 Priority:  normal            |   Milestone:  2.9
Component:  Extended Profile  |     Version:
 Severity:  normal            |  Resolution:
 Keywords:  has-patch commit  |
------------------------------+---------------------------
Changes (by lne1030):

 * status:  closed => reopened
 * type:  enhancement => defect (bug)
 * resolution:  fixed =>


Comment:

 Function '''bp_core_get_avatar_data_url_filter''' in the patch return
 '''null''' when the second param ''$id_or_email'' is an email address.

 Here is the Code: [bp-core/bp-core-
 avatars.php#L1378](https://buddypress.trac.wordpress.org/browser/trunk/src
 /bp-core/bp-core-avatars.php#L1374)


 Just add this code to line 1380 would fix this bug
 {{{#!php
 } elseif (is_string( $id_or_email ))  {
   $user = get_user_by( 'email', $id_or_email );

 }}}

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


More information about the buddypress-trac mailing list