Ticket #2619: 2619.diff
File 2619.diff, 2.5 KB (added by , 11 years ago) |
---|
-
src/includes/common/functions.php
1148 1148 * 1149 1149 * @since bbPress (r5156) 1150 1150 * 1151 * @param int $topic_id ID of the newly made reply1151 * @param int $topic_id ID of the newly made topic 1152 1152 * @uses bbp_is_subscriptions_active() To check if the subscriptions are active 1153 1153 * @uses bbp_get_topic_id() To validate the topic ID 1154 1154 * @uses bbp_get_forum_id() To validate the forum ID … … 1156 1156 * @uses bbp_get_forum_subscribers() To get the forum subscribers 1157 1157 * @uses bbp_get_topic_author_display_name() To get the topic author's display name 1158 1158 * @uses do_action() Calls 'bbp_pre_notify_forum_subscribers' with the topic id, 1159 * forum id and user id 1159 * forum id and user id's 1160 1160 * @uses apply_filters() Calls 'bbp_forum_subscription_mail_message' with the 1161 * message, topic id , forum id and userid1161 * message, topic id and forum id 1162 1162 * @uses apply_filters() Calls 'bbp_forum_subscription_mail_title' with the 1163 * topic title, topic id, forum id and userid1163 * blog name, topic title, topic id and forum id 1164 1164 * @uses apply_filters() Calls 'bbp_forum_subscription_mail_headers' 1165 1165 * @uses get_userdata() To get the user data 1166 1166 * @uses wp_mail() To send the mail … … 1192 1192 1193 1193 /** Mail ******************************************************************/ 1194 1194 1195 // Remove filters from replycontent and topic title to prevent content1195 // Remove filters from topic content and topic title to prevent content 1196 1196 // from being encoded with HTML entities, wrapped in paragraph tags, etc... 1197 1197 remove_all_filters( 'bbp_get_topic_content' ); 1198 1198 remove_all_filters( 'bbp_get_topic_title' ); … … 1222 1222 $topic_url 1223 1223 ); 1224 1224 1225 $message = apply_filters( 'bbp_forum_subscription_mail_message', $message, $topic_id, $forum_id , $user_id);1225 $message = apply_filters( 'bbp_forum_subscription_mail_message', $message, $topic_id, $forum_id ); 1226 1226 if ( empty( $message ) ) { 1227 1227 return; 1228 1228 } 1229 1229 1230 1230 // For plugins to filter titles per reply/topic/user 1231 $subject = apply_filters( 'bbp_forum_subscription_mail_title', '[' . $blog_name . '] ' . $topic_title, $topic_id, $forum_id , $user_id);1231 $subject = apply_filters( 'bbp_forum_subscription_mail_title', '[' . $blog_name . '] ' . $topic_title, $topic_id, $forum_id ); 1232 1232 if ( empty( $subject ) ) { 1233 1233 return; 1234 1234 }