[buddypress-trac] [BuddyPress Trac] #6193: Displaying member types within members loop fails

buddypress-trac noreply at wordpress.org
Fri Feb 6 14:22:56 UTC 2015


#6193: Displaying member types within members loop fails
---------------------------------+-----------------------------
 Reporter:  imath                |      Owner:
     Type:  defect (bug)         |     Status:  new
 Priority:  normal               |  Milestone:  Awaiting Review
Component:  Component - Members  |    Version:  2.2
 Severity:  normal               |   Keywords:
---------------------------------+-----------------------------
 I've been pinged by this topic https://buddypress.org/support/topic
 /bp_get_member_type-is-not-working-in-the-loop/ then tried to understand
 what was going wrong.

 I think the problem is due to the fact
 {{{bp_members_prefetch_member_type()}}} is caching a string and
 {{{bp_get_member_type()}}} needs an array as it uses {{{array_pop()}}}

 So i suggest the attached patch to be sure to cache all potentiel member
 types assigned to a user.

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


More information about the buddypress-trac mailing list