I was just browsing through the tickets on the bbPress trac and found this 9 months old ticket - http://trac.bbpress.org/ticket/1150 which seems critical to me.
Steps to reproduce:
- Create a new topic, post another post in it. And delete the post you just posted (i.e. the second reply in the topic).
- Create another topic, now delete the post that is shown, it would get deleted via ajax. This actually deletes the whole topic at the back-end, but it not shown on the front-end. Now also click the delete entire topic at the bottom of the topic. This would actually undelete the whole topic and ALL the other undeleted posts, even from other topics.
There are 2 simple methods to solve this:
- Redirect the topic after only the one left post in the topic is deleted.
- Add a new_action parameter (0 for undeleted and 1 for deleted), and then verify that with the old status in bb-admin/delete-topic.php.
But that won't fix the root cause, so we would need to dig deeper into bb_delete_topic and BB_QUERY to find out what's happening and why posts from other topics get undeleted.
I mailed about this to Matt and mdawaffe yesterday, but they didn't reply so I though it might get attention by posting about it here.


LinkBack URL
About LinkBacks
.
Reply With Quote