Skip to:
Content

bbPress.org

Ticket #2875: 2875.diff

File 2875.diff, 555 bytes (added by tharsheblows, 8 years ago)

bump rather than recalculate reply count in reply walker

  • src/includes/replies/functions.php

     
    10021002                                        bbp_update_forum_last_active_time( $ancestor, $forum_last_active_time );
    10031003                                }
    10041004
    1005                                 // Counts
    1006                                 bbp_update_forum_reply_count( $ancestor );
     1005                                // Counts -- bump up the reply count by one and only do it for this specific ancestor.
     1006                                bbp_bump_forum_reply_count( $ancestor, 1, false );
    10071007                        }
    10081008                }
    10091009        }