Ticket #1477: spam-posts-are-not-latest.patch
| File spam-posts-are-not-latest.patch, 1.4 KB (added by , 15 years ago) |
|---|
-
bbp-includes/bbp-reply-functions.php
428 428 // Verifiy the reply ID 429 429 if ( $reply_id = bbp_get_reply_id ( $reply_id ) ) { 430 430 431 // Make sure the reply isn't marked as spam or deleted by a plugin. 432 if ( get_post_field( 'post_status', $topic_id ) != 'publish' ) 433 return; 434 431 435 // Get the topic ID if none was passed 432 436 if ( empty( $topic_id ) ) 433 437 $topic_id = bbp_get_reply_topic_id ( $reply_id ); -
bbp-includes/bbp-topic-functions.php
447 447 * @param int $topic_id 448 448 * 449 449 * @uses bbp_get_topic_id() 450 * @uses get_post_field() 450 451 * @uses bbp_get_topic_forum_id() 451 452 * @uses get_post_ancestors() 452 453 * @uses bbp_is_forum() … … 457 458 // Validate topic_id 458 459 if ( $topic_id = bbp_get_topic_id( $topic_id ) ) { 459 460 461 // Make sure the topic isn't marked as spam or deleted by a plugin. 462 if ( get_post_field( 'post_status', $topic_id ) != 'publish' ) 463 return; 464 460 465 // Get the forum ID if none was passed 461 466 if ( empty( $forum_id ) ) 462 467 $forum_id = bbp_get_topic_forum_id( $topic_id );