diff --git src/bp-members/classes/class-bp-members-component.php src/bp-members/classes/class-bp-members-component.php
index 8effd0cf0..d4fe1a01e 100644
|
|
class BP_Members_Component extends BP_Component { |
148 | 148 | require $this->path . 'bp-members/actions/invitations-bulk-manage.php'; |
149 | 149 | } |
150 | 150 | |
151 | | // Screens. |
152 | | if ( bp_is_user_members_invitations_list() ) { |
153 | | require $this->path . 'bp-members/screens/list-invites.php'; |
| 151 | /** |
| 152 | * Screens. |
| 153 | * Double-check current action, because the default screen |
| 154 | * is sitation-specific. |
| 155 | */ |
| 156 | if ( empty( bp_current_action() ) ) { |
| 157 | if ( bp_is_my_profile() && bp_user_can( bp_displayed_user_id(), 'bp_members_invitations_view_send_screen' ) ) { |
| 158 | require $this->path . 'bp-members/screens/send-invites.php'; |
| 159 | } else { |
| 160 | require $this->path . 'bp-members/screens/list-invites.php'; |
| 161 | } |
154 | 162 | } else { |
155 | | require $this->path . 'bp-members/screens/send-invites.php'; |
| 163 | if ( bp_is_user_members_invitations_list() ) { |
| 164 | require $this->path . 'bp-members/screens/list-invites.php'; |
| 165 | } else { |
| 166 | require $this->path . 'bp-members/screens/send-invites.php'; |
| 167 | } |
156 | 168 | } |
157 | 169 | } |
158 | 170 | } |