Skip to:
Content

bbPress.org

Ticket #3356: patch-15-3-2020.diff

File patch-15-3-2020.diff, 596 bytes (added by SirLouen, 22 months ago)

patch #3356

  • includes/replies/functions.php

     
    952952                        } elseif ( bbp_is_forum( $ancestor ) ) {
    953953
    954954                                // Only update if reply is published
    955                                 if ( bbp_is_reply_pending( $reply_id ) && ! bbp_is_topic_pending( $topic_id ) ) {
     955                                if ( ! bbp_is_reply_pending( $reply_id ) && ! bbp_is_topic_pending( $topic_id ) ) {
    956956
    957957                                        // Last topic and reply ID's
    958958                                        bbp_update_forum_last_topic_id( $ancestor, $topic_id );