Question: I found the problem. It was in the functions.php of my child theme. I had some code in there to protect my BuddyPress pages. I removed it a few days ago when it broke the site. Now I see that it has been put back.
This has happened to me on a few occasions where something I have done gets reverted without me doing it.
Do you know how this might be possible? It’s like someone is uploading an old backup, but I’m the only one who works on the site.