Ticket #2629: 2629.diff
File 2629.diff, 1.8 KB (added by , 10 years ago) |
---|
-
src/includes/common/functions.php
1027 1027 * @uses bbp_get_topic() To get the reply's topic 1028 1028 * @uses bbp_is_topic_published() To make sure the topic is published 1029 1029 * @uses bbp_get_reply_author_display_name() To get the reply author's display name 1030 * @uses do_action() Calls 'bbp_pre_notify_ subscribers' with the reply id,1030 * @uses do_action() Calls 'bbp_pre_notify_topic_subscribers' with the reply id, 1031 1031 * topic id and user id 1032 1032 * @uses bbp_get_topic_subscribers() To get the topic subscribers 1033 1033 * @uses apply_filters() Calls 'bbp_subscription_mail_message' with the … … 1037 1037 * @uses apply_filters() Calls 'bbp_subscription_mail_headers' 1038 1038 * @uses get_userdata() To get the user data 1039 1039 * @uses wp_mail() To send the mail 1040 * @uses do_action() Calls 'bbp_post_notify_ subscribers' with the reply id,1040 * @uses do_action() Calls 'bbp_post_notify_topic_subscribers' with the reply id, 1041 1041 * topic id and user id 1042 1042 * @return bool True on success, false on failure 1043 1043 */ … … 1148 1148 $headers = apply_filters( 'bbp_subscription_mail_headers', $headers ); 1149 1149 $to_email = apply_filters( 'bbp_subscription_to_email', $no_reply ); 1150 1150 1151 do_action( 'bbp_pre_notify_ subscribers', $reply_id, $topic_id, $user_ids );1151 do_action( 'bbp_pre_notify_topic_subscribers', $reply_id, $topic_id, $user_ids ); 1152 1152 1153 1153 // Send notification email 1154 1154 wp_mail( $to_email, $subject, $message, $headers ); 1155 1155 1156 do_action( 'bbp_post_notify_ subscribers', $reply_id, $topic_id, $user_ids );1156 do_action( 'bbp_post_notify_topic_subscribers', $reply_id, $topic_id, $user_ids ); 1157 1157 1158 1158 return true; 1159 1159 }