Skip to:
Content
Pages
Categories
Search
Top
Bottom

Issue with Replies Changing post_parent When Topics Are Trashed in bbPress

  • @jnomell

    Participant

    I’m encountering a strange behavior in my new bbPress installation. Here’s what happens:

    Setup:
    • Forum: “General”
    • Sticky post in this forum containing the rules (closed for replies)
    • A test topic: “Now I’m drinking coffee”
    • A reply added to the test topic

    Steps to Reproduce:
    1. Create the topic “Now I’m drinking coffee” in the “General” forum.
    2. Add a reply to this topic. Everything works as expected.
    3. Go to wp-admin → Topics → All Topics.
    4. Move the “coffee” topic to the trash.

    Observed Behavior:
    • The reply added to the trashed topic also goes to the replies trash.
    • Its post_parent changes from the “coffee” topic to the sticky rules post (still published).
    • If I restore the topic from the trash, the reply is no longer associated with the topic.

    Expected Behavior:
    • The reply’s post_parent should remain linked to the original topic.
    • When emptying the topics trash, the reply should be deleted along with the topic, similar to how comments are handled with regular posts.

    Environment:
    • bbPress latest version
    • WordPress latest version
    • No child theme active
    • Plugin: “Enable bbPress for Block Themes”

    Has anyone else experienced this, or is there a fix/workaround?

  • You must be logged in to reply to this topic.
Skip to toolbar