Changeset 5931 for trunk/bp-friends/bp-friends-screens.php
- Timestamp:
- 03/16/2012 02:57:03 AM (14 years ago)
- File:
-
- 1 edited
-
trunk/bp-friends/bp-friends-screens.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-friends/bp-friends-screens.php
r5712 r5931 46 46 else 47 47 bp_core_add_message( __( 'Friendship could not be rejected', 'buddypress' ), 'error' ); 48 49 bp_core_redirect( trailingslashit( bp_loggedin_user_domain() . bp_current_component() . '/' . bp_current_action() ) ); 50 51 } elseif ( bp_is_action_variable( 'cancel', 0 ) && is_numeric( bp_action_variable( 1 ) ) ) { 52 // Check the nonce 53 check_admin_referer( 'friends_withdraw_friendship' ); 54 55 if ( friends_withdraw_friendship( bp_loggedin_user_id(), bp_action_variable( 1 ) ) ) 56 bp_core_add_message( __( 'Friendship request withdrawn', 'buddypress' ) ); 57 else 58 bp_core_add_message( __( 'Friendship request could not be withdrawn', 'buddypress' ), 'error' ); 48 59 49 60 bp_core_redirect( trailingslashit( bp_loggedin_user_domain() . bp_current_component() . '/' . bp_current_action() ) );
Note: See TracChangeset
for help on using the changeset viewer.