Ticket #2329: 2329.diff
| File 2329.diff, 1.6 KB (added by , 16 years ago) |
|---|
-
bp-groups.php
286 286 287 287 if ( isset($bp->action_variables) && in_array( 'accept', (array)$bp->action_variables ) && is_numeric($group_id) ) { 288 288 /* Check the nonce */ 289 if ( !check_admin_referer( 'groups_accept_invite ') )289 if ( !check_admin_referer( 'groups_accept_invite_' . $group_id ) ) 290 290 return false; 291 291 292 292 if ( !groups_accept_invite( $bp->loggedin_user->id, $group_id ) ) { … … 2565 2565 add_action( 'groups_created_group', 'bp_core_clear_cache' ); 2566 2566 add_action( 'groups_group_avatar_updated', 'bp_core_clear_cache' ); 2567 2567 2568 ?> 2569 No newline at end of file 2568 ?> -
bp-groups/bp-groups-templatetags.php
979 979 if ( !$group ) 980 980 $group =& $groups_template->group; 981 981 982 return apply_filters( 'bp_get_group_accept_invite_link', wp_nonce_url( $bp->loggedin_user->domain . $bp->groups->slug . '/invites/accept/' . $group->id, 'groups_accept_invite ') );982 return apply_filters( 'bp_get_group_accept_invite_link', wp_nonce_url( $bp->loggedin_user->domain . $bp->groups->slug . '/invites/accept/' . $group->id, 'groups_accept_invite_' . $group->id ) ); 983 983 } 984 984 985 985 function bp_group_reject_invite_link() { … … 2133 2133 $name = apply_filters( 'bp_get_group_name', $bp->groups->current_group->name ); 2134 2134 return apply_filters( 'bp_get_current_group_name', $name ); 2135 2135 } 2136 ?> 2137 No newline at end of file 2136 ?>