Changeset 7191 for trunk/src/includes/replies/functions.php
- Timestamp:
- 02/18/2021 06:31:34 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/replies/functions.php
r7177 r7191 319 319 /** Reply Status **********************************************************/ 320 320 321 // Maybe put into moderation 321 // Default to published 322 $reply_status = bbp_get_public_status_id(); 323 324 // Maybe force into pending 322 325 if ( bbp_is_topic_pending( $topic_id ) || ! bbp_check_for_moderation( $anonymous_data, $reply_author, $reply_title, $reply_content ) ) { 323 326 $reply_status = bbp_get_pending_status_id(); 324 325 // Default326 } else {327 $reply_status = bbp_get_public_status_id();328 327 } 329 328 … … 634 633 /** Reply Status **********************************************************/ 635 634 636 // Maybe put into moderation637 if ( ! bbp_check_for_moderation( $anonymous_data, $reply_author, $reply_title, $reply_content ) ) {638 639 // Set post status to pending if public640 if ( bbp_get_public_status_id() === $reply->post_status ) {641 $reply_status = bbp_get_pending_status_id();642 }643 644 635 // Use existing post_status 645 } else { 646 $reply_status = $reply->post_status; 636 $reply_status = $reply->post_status; 637 638 // Maybe force into pending 639 if ( bbp_is_reply_public( $reply_id ) && ! bbp_check_for_moderation( $anonymous_data, $reply_author, $reply_title, $reply_content ) ) { 640 $reply_status = bbp_get_pending_status_id(); 647 641 } 648 642
Note: See TracChangeset
for help on using the changeset viewer.