Skip to:
Content

BuddyPress.org

Changeset 8414


Ignore:
Timestamp:
05/12/2014 01:36:02 PM (10 years ago)
Author:
boonebgorges
Message:

Pass userdata to message content filters when sending notifications

Fixes #5634

Props adamt19

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-messages/bp-messages-notifications.php

    r8206 r8414  
    8787
    8888            // Send the message
    89             $email_to      = apply_filters( 'messages_notification_new_message_to',      $email_to );
    90             $email_subject = apply_filters( 'messages_notification_new_message_subject', $email_subject, $sender_name );
    91             $email_content = apply_filters( 'messages_notification_new_message_message', $email_content, $sender_name, $subject, $content, $message_link, $settings_link );
     89            $email_to      = apply_filters( 'messages_notification_new_message_to',      $email_to, $ud );
     90            $email_subject = apply_filters( 'messages_notification_new_message_subject', $email_subject, $sender_name, $ud );
     91            $email_content = apply_filters( 'messages_notification_new_message_message', $email_content, $sender_name, $subject, $content, $message_link, $settings_link, $ud );
    9292
    9393            wp_mail( $email_to, $email_subject, $email_content );
Note: See TracChangeset for help on using the changeset viewer.