Skip to:
Content

BuddyPress.org

Ticket #519: emailrequest.patch

File emailrequest.patch, 1.6 KB (added by burtadsit, 16 years ago)
  • bp-friends-notifications.php

     
    1111        $ud = get_userdata( $friend_id );
    1212       
    1313        $all_requests_link = site_url( MEMBERS_SLUG . '/' . $ud->user_login . '/friends/requests/' );
    14         $approve_request_link = wp_nonce_url( site_url( MEMBERS_SLUG . '/' . $ud->user_login . '/friends/requests/accept/' . $friendship_id, 'friends_accept_friendship' ) );
    15         $reject_request_link = wp_nonce_url( site_url( MEMBERS_SLUG . '/' . $ud->user_login . '/friends/requests/reject/' . $friendship_id, 'friends_reject_friendship' ) );
    16         $settings_link = site_url( MEMBERS_SLUG . '/' . $ud->user_login . '/settings/notifications' );
    17 
     14  $settings_link = site_url( MEMBERS_SLUG . '/' . $ud->user_login . '/settings/notifications' );
     15 
    1816        // Set up and send the message
    1917        $to = $ud->user_email;
    2018        $subject = '[' . get_blog_option( 1, 'blogname' ) . '] ' . sprintf( __( 'New friendship request from %s', 'buddypress' ), $initiator_name );
    2119
    2220        $message = sprintf( __(
    23 '%s wants to add you as a friend. You have two options:
     21'%s wants to add you as a friend.
    2422
    25 Accept the friendship request: %s
    26 
    27 Reject the friendship request: %s
    28 
    2923To view all of your pending friendship requests: %s
    3024
    3125---------------------
    32 ', 'buddypress' ), $initiator_name, $approve_request_link, $reject_request_link, $all_requests_link, $message_link );
     26', 'buddypress' ), $initiator_name, $all_requests_link );
    3327
    3428        $message .= sprintf( __( 'To disable these notifications please log in and go to: %s', 'buddypress' ), $settings_link );
    3529