Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
03/15/2011 02:55:33 PM (13 years ago)
Author:
boonebgorges
Message:

Passes settings_link variable to notification message filters. Fixes #3113. Props nerrad

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-groups/bp-groups-notifications.php

    r4118 r4144  
    3333        $to      = apply_filters( 'groups_notification_group_updated_to', $to );
    3434        $subject = apply_filters_ref_array( 'groups_notification_group_updated_subject', array( $subject, &$group ) );
    35         $message = apply_filters_ref_array( 'groups_notification_group_updated_message', array( $message, &$group, $group_link ) );
     35        $message = apply_filters_ref_array( 'groups_notification_group_updated_message', array( $message, &$group, $group_link, $settings_link ) );
    3636
    3737        wp_mail( $to, $subject, $message );
     
    8484    $to      = apply_filters( 'groups_notification_new_membership_request_to', $to );
    8585    $subject = apply_filters_ref_array( 'groups_notification_new_membership_request_subject', array( $subject, &$group ) );
    86     $message = apply_filters_ref_array( 'groups_notification_new_membership_request_message', array( $message, &$group, $requesting_user_name, $profile_link, $group_requests ) );
     86    $message = apply_filters_ref_array( 'groups_notification_new_membership_request_message', array( $message, &$group, $requesting_user_name, $profile_link, $group_requests, $settings_link ) );
    8787
    8888    wp_mail( $to, $subject, $message );
     
    140140    $to      = apply_filters( 'groups_notification_membership_request_completed_to', $to );
    141141    $subject = apply_filters_ref_array( 'groups_notification_membership_request_completed_subject', array( $subject, &$group ) );
    142     $message = apply_filters_ref_array( 'groups_notification_membership_request_completed_message', array( $message, &$group, $group_link ) );
     142    $message = apply_filters_ref_array( 'groups_notification_membership_request_completed_message', array( $message, &$group, $group_link, $settings_link ) );
    143143
    144144    wp_mail( $to, $subject, $message );
     
    188188    $to      = apply_filters( 'groups_notification_promoted_member_to', $to );
    189189    $subject = apply_filters_ref_array( 'groups_notification_promoted_member_subject', array( $subject, &$group ) );
    190     $message = apply_filters_ref_array( 'groups_notification_promoted_member_message', array( $message, &$group, $promoted_to, $group_link ) );
     190    $message = apply_filters_ref_array( 'groups_notification_promoted_member_message', array( $message, &$group, $promoted_to, $group_link, $settings_link ) );
    191191
    192192    wp_mail( $to, $subject, $message );
     
    242242        $to      = apply_filters( 'groups_notification_group_invites_to', $to );
    243243        $subject = apply_filters_ref_array( 'groups_notification_group_invites_subject', array( $subject, &$group ) );
    244         $message = apply_filters_ref_array( 'groups_notification_group_invites_message', array( $message, &$group, $inviter_name, $inviter_link, $invites_link, $group_link ) );
     244        $message = apply_filters_ref_array( 'groups_notification_group_invites_message', array( $message, &$group, $inviter_name, $inviter_link, $invites_link, $group_link, $settings_link ) );
    245245
    246246        wp_mail( $to, $subject, $message );
     
    302302            $to = apply_filters( 'groups_at_message_notification_to', $to );
    303303            $subject = apply_filters( 'groups_at_message_notification_subject', $subject, $group, $poster_name );
    304             $message = apply_filters( 'groups_at_message_notification_message', $message, $group, $poster_name, $content, $message_link );
     304            $message = apply_filters( 'groups_at_message_notification_message', $message, $group, $poster_name, $content, $message_link, $settings_link );
    305305
    306306            wp_mail( $to, $subject, $message );
Note: See TracChangeset for help on using the changeset viewer.