Opened 9 years ago
Closed 9 years ago
#7398 closed defect (bug) (fixed)
Incorrect inline docs for third parameter of activity comment posted actions
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 2.8 | Priority: | normal |
| Severity: | normal | Version: | |
| Component: | Activity | Keywords: | has-patch |
| Cc: |
Description
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.
Attachments (1)
Change History (4)
Note: See
TracTickets for help on using
tickets.
Correct the docs