BUG: bbp_get_all_child_ids() grabs trashed posts
-
The
bbp_get_all_child_ids()
function inbbpress/includes/common/functions.php
is returning Trashed posts, which should objectively not be the case. There’s no world in which trashed posts should appear unless someone is intentionally digging in the trash.Line 1997 is currently this:
$not_in = array( 'draft', 'future' );
It should be this instead:
$not_in = array( 'draft', 'future', 'trash' );
I have tested that as a manual change, but obviously, this needs to be bbpress’ default behavior, not my locally-hacked override.
Alternatively, you could add a third argument for overrides, but I think this is just an oversight.
Thank you.
- You must be logged in to reply to this topic.