[buddypress-trac] [BuddyPress Trac] #7398: Incorrect inline docs for third parameter of activity comment posted actions
buddypress-trac
noreply at wordpress.org
Mon Dec 19 20:31:24 UTC 2016
#7398: Incorrect inline docs for third parameter of activity comment posted
actions
--------------------------+-----------------------------
Reporter: jdgrimes | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Activity | Version:
Severity: normal | Keywords:
--------------------------+-----------------------------
The `bp_activity_comment_posted` and
`bp_activity_comment_posted_notification_skipped` actions are fired in
`bp_activity_new_comment()` with three parameters, the third one being
`$activity`. The `$activity` var is a `BP_Activity_Activity` object, but
it is documented as an `int` and said to be the "ID of the activity item
being commented on".
I think these docs are just in error and should be updated to indicate
that an activity object is passed, not an ID.
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7398>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list