Ticket #3053: 3053.patch
| File 3053.patch, 1008 bytes (added by , 9 years ago) |
|---|
-
includes/replies/functions.php
437 437 if ( bbp_is_topic_trash( $topic_id ) ) { 438 438 439 439 // Get pre_trashed_replies for topic 440 $pre_trashed_replies = get_post_meta( $topic_id, '_bbp_pre_trashed_replies', true );440 $pre_trashed_replies = (array) get_post_meta( $topic_id, '_bbp_pre_trashed_replies', true ); 441 441 442 442 // Add this reply to the end of the existing replies 443 443 $pre_trashed_replies[] = $reply_id; … … 456 456 if ( bbp_is_topic_spam( $topic_id ) ) { 457 457 458 458 // Get pre_spammed_replies for topic 459 $pre_spammed_replies = get_post_meta( $topic_id, '_bbp_pre_spammed_replies', true );459 $pre_spammed_replies = (array) get_post_meta( $topic_id, '_bbp_pre_spammed_replies', true ); 460 460 461 461 // Add this reply to the end of the existing replies 462 462 $pre_spammed_replies[] = $reply_id;