[buddypress-trac] [BuddyPress Trac] #8297: The function groups_get_invites_for_user() can return inconsistent total

buddypress-trac noreply at wordpress.org
Thu Oct 8 14:31:54 UTC 2020


#8297: The function groups_get_invites_for_user() can return inconsistent total
--------------------------+----------------------
 Reporter:  imath         |       Owner:  dcavins
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  7.0.0
Component:  Groups        |     Version:
 Severity:  normal        |  Resolution:  fixed
 Keywords:  dev-feedback  |
--------------------------+----------------------
Changes (by dcavins):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"12741" 12741]:
 {{{
 #!CommitTicketReference repository="" revision="12741"
 Change how groups_get_invites_for_user() reports total.

 In `groups_get_invites_for_user()` use the total returned by the
 `groups_get_groups()` call. This helps avoid the edge case where
 invitations to groups that no longer exist are still recorded in the
 invitations table. In that case, `groups_get_groups()` will only return
 existent groups.

 Also update `groups_get_invite_count_for_user()` to use this more reliable
 method.

 Props imath.

 Fixes #8297.
 }}}

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/8297#comment:7>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list