Skip to:
Content

bbPress.org

Ticket #1992: bbpress-notification-headers.patch

File bbpress-notification-headers.patch, 831 bytes (added by gawain, 12 years ago)
  • bbp-includes/common/functions.php

    diff --git a/bbp-includes/common/functions.php b/bbp-includes/common/functions.php
    index 6a28e80..7e648bf 100644
    a b  
    970970        if ( !bbp_is_subscriptions_active() )
    971971                return false;
    972972
     973        /** Headers ***************************************************************/
     974        $headers = apply_filters( 'bbp_mail_headers', $headers );
     975
    973976        /** Validation ************************************************************/
    974977
    975978        $reply_id = bbp_get_reply_id( $reply_id );
     
    10511054                $user = get_userdata( $user_id );
    10521055
    10531056                // Send notification email
    1054                 wp_mail( $user->user_email, $subject, $message );
     1057                wp_mail( $user->user_email, $subject, $message, $headers );
    10551058        }
    10561059
    10571060        do_action( 'bbp_post_notify_subscribers', $reply_id, $topic_id, $user_ids );