Re: rebuilding topics DB
Yeah I was just being quick and lazy. I guess I could fetch the proper table prefix and make it work for anyone.
Just shared it in the hope someone more skilled would make a more professional function.
Without much more work, it could be made to rebuild the entire topics table from scratch using all the posts table data (well except for the topic title which apparently is not stored anywhere else? Would it have been too much to have varchar post_title in there for eventual ability to allow post replies to change the title without a plugin/extra table?)
It also would allow the “real delete” ability several people have been asking for.