Skip to:
Content

BuddyPress.org

Changeset 9764


Ignore:
Timestamp:
04/17/2015 11:01:25 AM (11 years ago)
Author:
boonebgorges
Message:

Pass the ID of the author of the immediate parent comment to 'bp_activity_sent_reply_to_reply_email'.

As a result of an earlier copy-and-paste error, the ID of the author of the
top-level comment was being sent. This caused the current hook to be pretty
much useless. See [3362].

Props dtc7240.
Fixes #6375.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-activity/bp-activity-notifications.php

    r9351 r9764  
    343343                 * @since BuddyPress (1.5.0)
    344344                 *
    345                  * @param int    $user_id ID of the original activity item author.
     345                 * @param int    $user_id ID of the parent activity item author.
    346346                 * @param string $subject Email notification subject text.
    347347                 * @param string $message Email notification message text.
    … …  
    350350                 * @param array  $params Arguments used with the original activity comment.
    351351                 */
    352                 do_action( 'bp_activity_sent_reply_to_reply_email', $original_activity->user_id, $subject, $message, $comment_id, $commenter_id, $params );
     352                do_action( 'bp_activity_sent_reply_to_reply_email', $parent_comment->user_id, $subject, $message, $comment_id, $commenter_id, $params );
    353353        }
    354354}
Note: See TracChangeset for help on using the changeset viewer.