Opened 4 years ago
Closed 4 years ago
#3409 closed defect (bug) (fixed)
Issue with _bbp_pre_trashed_replies
Reported by: | dungdc40 | Owned by: | johnjamesjacoby |
---|---|---|---|
Milestone: | 2.6.6 | Priority: | normal |
Severity: | normal | Version: | 2.6.5 |
Component: | Component - Replies | Keywords: | has-patch |
Cc: |
Description
File: includes\replies\functions.php
Line: 293
$pre_trashed_replies = (array) get_post_meta( $topic_id, '_bbp_pre_trashed_replies', true );
This line has issue, if get_post_meta() return empty string, then (array) will convert it to
array(1) {
[0]=>
string(0) ""
}
which add empty id into the array, which made the topic become not able to be unhidden later.
Attachments (1)
Change History (5)
Note: See
TracTickets for help on using
tickets.
Fix for trash and spam