Changeset 12792
- Timestamp:
- 11/19/2020 12:48:25 PM (4 years ago)
- Location:
- branches/6.0
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/6.0/src/bp-core/classes/class-bp-invitation-manager.php
r12428 r12792 612 612 * @return bool True on success, false on failure. 613 613 */ 614 abstract public function run_acceptance_action( $type = 'invite', $r );614 abstract public function run_acceptance_action( $type, $r ); 615 615 616 616 /** -
branches/6.0/src/bp-groups/classes/class-bp-groups-invitation-manager.php
r12429 r12792 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. -
branches/6.0/tests/phpunit/assets/invitations-extensions.php
r12428 r12792 13 13 } 14 14 15 public function run_acceptance_action( $type = 'invite', $r ) {15 public function run_acceptance_action( $type, $r ) { 16 16 return true; 17 17 }
Note: See TracChangeset
for help on using the changeset viewer.