- Timestamp:
- 03/09/2024 10:55:43 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-groups/screens/single/admin/group-settings.php
r13446 r13762 12 12 * 13 13 * @since 1.0.0 14 * 15 * @return void 14 16 */ 15 17 function groups_screen_group_admin_settings() { 16 18 17 if ( 'group-settings' != bp_get_group_current_admin_tab() ) 18 return false; 19 if ( 'group-settings' !== bp_get_group_current_admin_tab() ) { 20 return; 21 } 19 22 20 if ( ! bp_is_item_admin() ) 21 return false; 23 if ( ! bp_is_item_admin() ) { 24 return; 25 } 22 26 23 27 $bp = buddypress(); … … 38 42 39 43 // Check the nonce. 40 if ( !check_admin_referer( 'groups_edit_group_settings' ) ) 41 return false; 44 if ( ! check_admin_referer( 'groups_edit_group_settings' ) ) { 45 return; 46 } 42 47 43 48 $group_id = bp_get_current_group_id(); … … 101 106 do_action( 'groups_screen_group_admin_settings', $bp->groups->current_group->id ); 102 107 103 /** 104 * Filters the template to load for a group's admin/group-settings page. 105 * 106 * @since 1.0.0 107 * 108 * @param string $value Path to a group's admin/group-settings template. 109 */ 110 bp_core_load_template( apply_filters( 'groups_template_group_admin_settings', 'groups/single/home' ) ); 108 $templates = array( 109 /** 110 * Filters the template to load for a group's admin/group-settings page. 111 * 112 * @since 1.0.0 113 * 114 * @param string $value Path to a group's admin/group-settings template. 115 */ 116 apply_filters( 'groups_template_group_admin_settings', 'groups/single/home' ), 117 'groups/single/index', 118 ); 119 120 bp_core_load_template( $templates ); 111 121 } 112 122 add_action( 'bp_screens', 'groups_screen_group_admin_settings' );
Note: See TracChangeset
for help on using the changeset viewer.