[buddypress-trac] [BuddyPress Trac] #6287: get_invite_count_for_user returning incorrect value (0)

buddypress-trac noreply at wordpress.org
Mon Mar 9 14:52:44 UTC 2015

#6287: get_invite_count_for_user returning incorrect value (0)
 Reporter:  rogercoathup  |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  API           |    Version:
 Severity:  normal        |   Keywords:
 We are seeing no group invites, even though several exist, on the
 invitations page for a user (/members/single/groups/inivites.php),

 We have a plugin that runs a bp_has_groups() loop on the init action.  On
 the invitations page this causes the subsequent invitations
 bp_has_groups() loop to fail.

 The problem seems to be the wp_cache_get call in
 get_invite_count_for_user() (line 2425 of bp-groups-classes.php), which is
 returning 0 (the value from the loop on init in the plugin), rather than
 the correct value for the invite loop in the invite template.

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

More information about the buddypress-trac mailing list