Ticket #3409: 3409.patch
File 3409.patch, 1.2 KB (added by , 5 years ago) |
---|
-
src/includes/replies/functions.php
414 414 if ( bbp_is_topic_trash( $topic_id ) ) { 415 415 416 416 // Get pre_trashed_replies for topic 417 $pre_trashed_ replies = (array)get_post_meta( $topic_id, '_bbp_pre_trashed_replies', true );417 $pre_trashed_meta = get_post_meta( $topic_id, '_bbp_pre_trashed_replies', true ); 418 418 419 // Format the meta value 420 $pre_trashed_replies = is_array( $pre_trashed_meta ) 421 ? array_reverse( $pre_trashed_meta ) 422 : array(); 423 419 424 // Add this reply to the end of the existing replies 420 425 $pre_trashed_replies[] = $reply_id; 421 426 … … 433 438 if ( bbp_is_topic_spam( $topic_id ) ) { 434 439 435 440 // Get pre_spammed_replies for topic 436 $pre_ spammed_replies = (array)get_post_meta( $topic_id, '_bbp_pre_spammed_replies', true );441 $pre_trashed_meta = get_post_meta( $topic_id, '_bbp_pre_spammed_replies', true ); 437 442 443 // Format the meta value 444 $pre_spammed_replies = is_array( $pre_trashed_meta ) 445 ? array_reverse( $pre_trashed_meta ) 446 : array(); 447 438 448 // Add this reply to the end of the existing replies 439 449 $pre_spammed_replies[] = $reply_id;