- Timestamp:
- 11/19/2020 12:50:44 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-groups/classes/class-bp-groups-invitation-manager.php
r12429 r12793 68 68 * @return bool True on success, false on failure. 69 69 */ 70 public function run_acceptance_action( $type = 'invite', $r ) { 70 public function run_acceptance_action( $type, $r ) { 71 if ( ! $type || ! in_array( $type, array( 'request', 'invite' ), true ) ) { 72 return false; 73 } 74 71 75 // If the user is already a member (because BP at one point allowed two invitations to 72 76 // slip through), return early.
Note: See TracChangeset
for help on using the changeset viewer.