Changeset 12793
- Timestamp:
- 11/19/2020 12:50:44 PM (4 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/classes/class-bp-invitation-manager.php
r12771 r12793 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 /** -
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. -
trunk/tests/phpunit/assets/invitations-extensions.php
r12428 r12793 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.