[buddypress-trac] [BuddyPress Trac] #5570: `bp_get_member_profile_data` showing wrong values cached for other users

buddypress-trac noreply at wordpress.org
Mon Apr 21 07:48:26 UTC 2014


#5570: `bp_get_member_profile_data` showing wrong values cached for other users
----------------------------+-----------------------------
 Reporter:  frederick.ding  |      Owner:
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  XProfile        |    Version:  2.0
 Severity:  major           |   Keywords:
----------------------------+-----------------------------
 After upgrading to BP 2.0: on a members directory listing, if
 `bp_get_member_profile_data('field=Name of Custom Field')` is called
 inside the loop, and that current user does not have any value for that
 profile field, BuddyPress erroneously shows the value for previous members
 from the loop.

 Although I traced the call to
 `BP_XProfile_ProfileData::get_all_for_user($user_id)`, and from there to
 `BP_XProfile_Group::get()`, I am not familiar enough with BuddyPress to
 investigate specifically where the problem may lie. It also seems that
 this XProfile-extended listing is a custom case (BP does not do this by
 default, although the core files suggest making extended listings this way
 as a comment in the legacy template folder).

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


More information about the buddypress-trac mailing list