Changeset 2117
- Timestamp:
- 11/25/2009 10:05:30 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.1/bp-friends.php
r2076 r2117 118 118 if ( isset($bp->action_variables) && 'accept' == $bp->action_variables[0] && is_numeric($bp->action_variables[1]) ) { 119 119 /* Check the nonce */ 120 if ( !check_admin_referer( 'friends_accept_friendship' ) ) 121 return false; 120 check_admin_referer( 'friends_accept_friendship' ); 122 121 123 122 if ( friends_accept_friendship( $bp->action_variables[1] ) ) { … … 130 129 } else if ( isset($bp->action_variables) && 'reject' == $bp->action_variables[0] && is_numeric($bp->action_variables[1]) ) { 131 130 /* Check the nonce */ 132 if ( !check_admin_referer( 'friends_reject_friendship' ) )133 return false; 131 check_admin_referer( 'friends_reject_friendship' ); 132 134 133 135 134 if ( friends_reject_friendship( $bp->action_variables[1] ) ) { … … 630 629 $friend_link = bp_core_get_userlink( $friendship->friend_user_id ); 631 630 632 $primary_link = apply_filters( 'friends_activity_friendship_accepted_primary_link', bp_core_get_user link( $friendship->initiator_user_id ), &$friendship );631 $primary_link = apply_filters( 'friends_activity_friendship_accepted_primary_link', bp_core_get_userurl( $friendship->initiator_user_id ), &$friendship ); 633 632 634 633 /* Record in activity streams for the initiator */
Note: See TracChangeset
for help on using the changeset viewer.