Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
03/16/2012 02:57:03 AM (14 years ago)
Author:
johnjamesjacoby
Message:

Add the ability to cancel a pending friendship request. Props ddean. Fixes #3897.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-friends/bp-friends-template.php

    r5927 r5931  
    319319                    'must_be_logged_in' => true,
    320320                    'block_self'        => true,
    321                     'wrapper_class'     => 'friendship-button pending',
     321                    'wrapper_class'     => 'friendship-button pending_friend',
    322322                    'wrapper_id'        => 'friendship-button-' . $potential_friend_id,
    323                     'link_href'         => trailingslashit( bp_loggedin_user_domain() . bp_get_friends_slug() . '/requests' ),
    324                     'link_text'         => __( 'Friendship Requested', 'buddypress' ),
    325                     'link_title'        => __( 'Friendship Requested', 'buddypress' ),
    326                     'link_class'        => 'friendship-button pending requested'
     323                    'link_href'         => wp_nonce_url( bp_loggedin_user_domain() . bp_get_friends_slug() . '/requests/cancel/' . $potential_friend_id . '/', 'friends_withdraw_friendship' ),
     324                    'link_text'         => __( 'Cancel Friendship Request', 'buddypress' ),
     325                    'link_title'        => __( 'Cancel Friendship Requested', 'buddypress' ),
     326                    'link_id'           => 'friend-' . $potential_friend_id,
     327                    'link_rel'          => 'remove',
     328                    'link_class'        => 'friendship-button pending_friend requested'
    327329                );
    328330                break;
Note: See TracChangeset for help on using the changeset viewer.