#2588 closed defect (bug) (fixed)
Nested messages are replying to themselves
Reported by: | MichaelApproved | Owned by: | |
---|---|---|---|
Milestone: | 2.5.4 | Priority: | normal |
Severity: | normal | Version: | 2.3 |
Component: | Component - Replies | Keywords: | has-patch |
Cc: |
Description
I recently upgraded from 2.3.2 to 2.5.3 to get nested message replies. The upgrade went well and messages are nesting properly, for the most part. However, there are some messages that seem to be replying to themselves. For example, if a message is numbered 1080, the "_bbp_reply_to" field is also 1080. The "_bbp_reply_to" field should actually be 0.
This seems to happen to top level replies and doesn't happen all the time. I can't repeat the issue myself but I see the buggy replies when I look through the messages.
As a temporary fix, I added code to loop through recent messages and change any messages that have a reply to itself change to 0.
Attachments (3)
Change History (17)
#1
@
10 years ago
- Keywords has-patch added
- Milestone changed from Awaiting Review to 2.6
- Severity changed from major to normal
Confirmed, noticed this in #2586#comment:4
In
bbp_update_reply_to
the order of arguments passed should be 1. $reply_id 2. $reply_toThe apply filter call was passing these in the incorrect order causing
update_post_meta
to update_bbp_reply_to
with the$reply_to
value as the$reply_id
.