Skip to:
Content

bbPress.org

Ticket #2619: 2619.diff

File 2619.diff, 2.5 KB (added by netweb, 11 years ago)
  • src/includes/common/functions.php

     
    11481148 *
    11491149 * @since bbPress (r5156)
    11501150 *
    1151  * @param int $topic_id ID of the newly made reply
     1151 * @param int $topic_id ID of the newly made topic
    11521152 * @uses bbp_is_subscriptions_active() To check if the subscriptions are active
    11531153 * @uses bbp_get_topic_id() To validate the topic ID
    11541154 * @uses bbp_get_forum_id() To validate the forum ID
     
    11561156 * @uses bbp_get_forum_subscribers() To get the forum subscribers
    11571157 * @uses bbp_get_topic_author_display_name() To get the topic author's display name
    11581158 * @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
    11601160 * @uses apply_filters() Calls 'bbp_forum_subscription_mail_message' with the
    1161  *                    message, topic id, forum id and user id
     1161 *                    message, topic id and forum id
    11621162 * @uses apply_filters() Calls 'bbp_forum_subscription_mail_title' with the
    1163  *                    topic title, topic id, forum id and user id
     1163 *                    blog name, topic title, topic id  and forum id
    11641164 * @uses apply_filters() Calls 'bbp_forum_subscription_mail_headers'
    11651165 * @uses get_userdata() To get the user data
    11661166 * @uses wp_mail() To send the mail
     
    11921192
    11931193        /** Mail ******************************************************************/
    11941194
    1195         // Remove filters from reply content and topic title to prevent content
     1195        // Remove filters from topic content and topic title to prevent content
    11961196        // from being encoded with HTML entities, wrapped in paragraph tags, etc...
    11971197        remove_all_filters( 'bbp_get_topic_content' );
    11981198        remove_all_filters( 'bbp_get_topic_title'   );
     
    12221222                $topic_url
    12231223        );
    12241224
    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 );
    12261226        if ( empty( $message ) ) {
    12271227                return;
    12281228        }
    12291229
    12301230        // 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 );
    12321232        if ( empty( $subject ) ) {
    12331233                return;
    12341234        }