Skip to:
Content

bbPress.org

Ticket #2529: 2529.06.patch

File 2529.06.patch, 651 bytes (added by thebrandonallen, 6 years ago)
  • src/includes/replies/functions.php

    diff --git src/includes/replies/functions.php src/includes/replies/functions.php
    index b8f07f9..86b7011 100644
    function bbp_update_reply_walker( $reply_id, $last_active_time = '', $forum_id = 
    928928                // Get the topic ID if none was passed
    929929                if ( empty( $topic_id ) ) {
    930930                        $topic_id = bbp_get_reply_topic_id( $reply_id );
     931
     932                        // Make every effort to get topic id
     933                        if ( empty( $topic_id ) && 'bbp_deleted_reply' === current_action() ) {
     934                                $topic_id = get_post_field( 'post_parent', $reply_id );
     935                        }
    931936                }
    932937
    933938                // Get the forum ID if none was passed