Changeset 7140
- Timestamp:
- 11/03/2020 09:39:14 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.6/src/includes/replies/functions.php
r7123 r7140 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 419 // Format the meta value 420 $pre_trashed_replies = is_array( $pre_trashed_meta ) 421 ? array_filter( $pre_trashed_meta ) 422 : array(); 418 423 419 424 // Add this reply to the end of the existing replies … … 421 426 422 427 // Update the pre_trashed_reply post meta 423 update_post_meta( $topic_id, '_bbp_pre_trashed_replies', $pre_trashed_replies);428 update_post_meta( $topic_id, '_bbp_pre_trashed_replies', array_filter( $pre_trashed_replies ) ); 424 429 } 425 430 … … 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 ); 442 443 // Format the meta value 444 $pre_spammed_replies = is_array( $pre_trashed_meta ) 445 ? array_filter( $pre_trashed_meta ) 446 : array(); 437 447 438 448 // Add this reply to the end of the existing replies
Note: See TracChangeset
for help on using the changeset viewer.