Opened 10 years ago
Closed 10 years ago
#7398 closed defect (bug) (fixed)
Incorrect inline docs for third parameter of activity comment posted actions
| Reported by: | jdgrimes | Owned by: | boonebgorges |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.8 |
| Component: | Activity | Version: | |
| Severity: | normal | 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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Correct the docs