[buddypress-trac] [BuddyPress] #2288: bp_core_fetch_avatar_filter() doesn't support email address in $user parameter [HAS-PATCH]

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Tue Apr 6 16:54:42 UTC 2010


#2288: bp_core_fetch_avatar_filter() doesn't support email address in $user
parameter [HAS-PATCH]
----------------------+-----------------------------------------------------
 Reporter:  rvenable  |       Owner:           
     Type:  defect    |      Status:  new      
 Priority:  minor     |   Milestone:  1.2.4    
Component:  Core      |    Keywords:  has-patch
----------------------+-----------------------------------------------------
 bp_core_fetch_avatar_filter() is used as a filter on the WP get_avatar()
 function. The 'get_avatar' filter passes a variable $id_or_email (see
 [http://core.trac.wordpress.org/browser/tags/2.9.2/wp-
 includes/pluggable.php#L1631 pluggable.php, line 1631]) which becomes the
 $user parameter of bp_core_fetch_avatar_filter(). However, $id_or_email
 can either be a user ID, a user object, or a user email address, but
 bp_core_fetch_avatar_filter() does not support the email address.

 This breaks some themes that pass a user email address to get_avatar() for
 comments, causing the comments to display the avatar for the blog post
 author rather than the comment author.

 This cannot be demonstrated on testbp.org because it is no longer running
 WPMU.

-- 
Ticket URL: <http://trac.buddypress.org/ticket/2288>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list