Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
05/28/2016 09:17:35 PM (9 years ago)
Author:
r-a-y
Message:

Replace group membership static DB method calls with group membership functions.

Our group membership functions now have better caching logic due to #6327
and #7078.

This commit switches all our older group membership static DB method calls
with these group membership functions so sites enabled with an object cache
can benefit from these improvements.

Props r-a-y, boonebgorges, dcavins.

Fixes #7078.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-groups/bp-groups-screens.php

    r10718 r10820  
    691691        $message = __( 'You are not allowed to send or remove invites', 'buddypress' );
    692692        $error = 'error';
    693     } elseif ( BP_Groups_Member::check_for_membership_request( $friend_id, $group_id ) ) {
     693    } elseif ( groups_check_for_membership_request( $friend_id, $group_id ) ) {
    694694        $message = __( 'The member requested to join the group', 'buddypress' );
    695695        $error = 'error';
Note: See TracChangeset for help on using the changeset viewer.