Skip to:
Content

BuddyPress.org

Changeset 7448


Ignore:
Timestamp:
10/19/2013 08:03:56 PM (11 years ago)
Author:
r-a-y
Message:

Pass the parent activity object to the 'bp_activity_comment_posted'
hook.

This will ensure that plugins can reference the parent activity item
when an activity comment is posted.

See #5130.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-activity/bp-activity-functions.php

    r7406 r7448  
    12491249    wp_cache_delete( 'bp_activity_comments_' . $parent_id );
    12501250
    1251     do_action( 'bp_activity_comment_posted', $comment_id, $params );
     1251    do_action( 'bp_activity_comment_posted', $comment_id, $params, $activity );
    12521252
    12531253    return $comment_id;
Note: See TracChangeset for help on using the changeset viewer.