Changeset 13762 for trunk/src/bp-groups/actions/leave-group.php
- Timestamp:
- 03/09/2024 10:55:43 AM (20 months ago)
- File:
-
- 1 edited
-
trunk/src/bp-groups/actions/leave-group.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-groups/actions/leave-group.php
r13503 r13762 19 19 * @since 1.2.4 20 20 * 21 * @return bool21 * @return void 22 22 */ 23 23 function groups_action_leave_group() { 24 24 if ( ! bp_is_single_item() || ! bp_is_groups_component() || ! bp_is_current_action( 'leave-group' ) ) { 25 return false;25 return; 26 26 } 27 27 28 28 // Nonce check. 29 29 if ( ! check_admin_referer( 'groups_leave_group' ) ) { 30 return false;30 return; 31 31 } 32 32 … … 56 56 } 57 57 58 /** This filter is documented in bp-groups/bp-groups-actions.php */ 59 bp_core_load_template( apply_filters( 'groups_template_group_home', 'groups/single/home' ) ); 58 $templates = array( 59 /** This filter is documented in bp-groups/actions/join.php */ 60 apply_filters( 'groups_template_group_home', 'groups/single/home' ), 61 'groups/single/index', 62 ); 63 64 bp_core_load_template( $templates ); 60 65 } 61 66 add_action( 'bp_actions', 'groups_action_leave_group' );
Note: See TracChangeset
for help on using the changeset viewer.