Skip to:
Content

BuddyPress.org

Changeset 11305


Ignore:
Timestamp:
12/19/2016 10:14:28 PM (8 years ago)
Author:
slaffik
Message:

Groups: Invitations settig unsync between front end and back end.

Invitation status may be unsynced for older groups, because there is no fallback used in group editing wp-admin area. We call groupmeta directly there for a value (which can be empty), but should use bp_group_get_invite_status()` instead, so it's filterable and is the same logic as on front-end.

Fixes #7399.

File:
1 edited

Legend:

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

    r11268 r11305  
    795795function bp_groups_admin_edit_metabox_settings( $item ) {
    796796
    797     $invite_status = groups_get_groupmeta( $item->id, 'invite_status' ); ?>
     797    $invite_status = bp_group_get_invite_status( $item->id ); ?>
    798798
    799799    <?php if ( bp_is_active( 'forums' ) ) : ?>
Note: See TracChangeset for help on using the changeset viewer.