[buddypress-trac] [BuddyPress] #4333: Allow User avatar functions to pass through arguments to bp_core_fetch_avatar

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Mon Jul 9 23:51:27 UTC 2012


#4333: Allow User avatar functions to pass through arguments to
bp_core_fetch_avatar
-------------------------------------+------------------------------
 Reporter:  cklosows                 |       Owner:
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  Awaiting Review
Component:  Members                  |     Version:  1.6-beta
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |
-------------------------------------+------------------------------

Comment (by cklosows):

 There are syntax issues with your patch when setting the item_id and email
 elements of the $r array.

 {{{
 $r = ['item_id'] = bp_loggedin_user_id();
 $r = ['email']   = bp_get_loggedin_user_email();
 }}}

 {{{
 $r = ['item_id'] = bp_displayed_user_id();
 $r = ['email']   = bp_get_displayed_user_email();
 }}}

 I've corrected and this seems to work.

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/4333#comment:4>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list