Skip to:
Content

bbPress.org

Ticket #2629: 2629.diff

File 2629.diff, 1.8 KB (added by netweb, 10 years ago)
  • src/includes/common/functions.php

     
    10271027 * @uses bbp_get_topic() To get the reply's topic
    10281028 * @uses bbp_is_topic_published() To make sure the topic is published
    10291029 * @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,
    10311031 *                    topic id and user id
    10321032 * @uses bbp_get_topic_subscribers() To get the topic subscribers
    10331033 * @uses apply_filters() Calls 'bbp_subscription_mail_message' with the
     
    10371037 * @uses apply_filters() Calls 'bbp_subscription_mail_headers'
    10381038 * @uses get_userdata() To get the user data
    10391039 * @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,
    10411041 *                    topic id and user id
    10421042 * @return bool True on success, false on failure
    10431043 */
     
    11481148        $headers  = apply_filters( 'bbp_subscription_mail_headers', $headers  );
    11491149        $to_email = apply_filters( 'bbp_subscription_to_email',     $no_reply );
    11501150
    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 );
    11521152
    11531153        // Send notification email
    11541154        wp_mail( $to_email, $subject, $message, $headers );
    11551155
    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 );
    11571157
    11581158        return true;
    11591159}