Skip to:
Content

BuddyPress.org

Changes between Initial Version and Version 1 of Ticket #8297


Ignore:
Timestamp:
05/12/2020 11:23:43 AM (4 years ago)
Author:
imath
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #8297 – Description

    initial v1  
    1 Now that Group invites are managed using the BP Invitations API, it looks like the total of groups can be inconsistent into this function. I've found a case where there were no groups found and the total was 1. The reason was the {{{$wpdb . 'bp_invitations'}}} table was containing an invite for a group that were deleted.
     1Now that Group invites are managed using the BP Invitations API, it looks like the total of groups can be inconsistent into this function. I've found a case where there were no groups found and the total was 1. The reason was the {{{$wpdb . 'bp_invitations'}}} table was containing an invite for a group that has been deleted.
    22
    33Is there a reason why we don't use the total number of groups returned by the {{{groups_get_groups()}}} and used instead {{{groups_get_invite_count_for_user()}}} which run an extra DB query that can be wrong...