Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
05/17/2021 11:57:00 PM (4 years ago)
Author:
dcavins
Message:

Member Invites: Change screen file loading logic.

  • Move send and list invitations load actions to single screen file.

This avoids an issue where the current action isn't known
as of late_includes and could, in unusual cases, cause the
wrong screen file to be loaded.

  • Replace several vestigial 'network_invitations' mentions.

Props imath.

See #8139.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-members/classes/class-bp-members-component.php

    r12936 r12951  
    145145        if ( is_user_logged_in() && bp_is_user_members_invitations() ) {
    146146            // Actions.
    147             if ( bp_is_post_request() ) {
     147            if ( isset( $_POST['members_invitations'] ) ) {
    148148                require $this->path . 'bp-members/actions/invitations-bulk-manage.php';
    149149            }
    150150
    151151            // Screens.
    152             if ( bp_is_user_members_invitations_list() ) {
    153                 require $this->path . 'bp-members/screens/list-invites.php';
    154             } else {
    155                 require $this->path . 'bp-members/screens/send-invites.php';
    156             }
     152            require $this->path . 'bp-members/screens/invitations.php';
    157153        }
    158154    }
Note: See TracChangeset for help on using the changeset viewer.