Hello, I have found a very unusual issue with one of our sites where a draft post is actually live.
I have a lot of wordpress sites (over 60) and have never seen this issue before.
I first noticed this when I was working on a new post and saw some traffic heading to the post. I assumed that I had made a mistake and published the post. I checked it and it was still in draft. I then checked all other posts that were still in draft and every single one of them was live.
We use WordPress SEO plugin, so I checked the sitemap that it creates and found that none of the draft posts were listed in the sitemap. I assume this means that WordPress SEO is detecting that the posts have not been published.
I deactivated all plugins, but the draft posts were still accessible as if they were published.
I checked another site I have which uses the same theme, but it does not exhibit the same issue.
Example post: http://businessonline.ph/old-demo-websites/
Note the published date, it is whatever date it is when you view it and not the date is was published. I assume this is part of the error as it has not been published and was never published.
Ideally, if someone could provide possible troubleshooting items that I have missed and/or explain the process that WordPress uses to prevent draft posts to be accessible like published posts are.
As I have removed all plugins and tested the theme on another site, I assume that the issue is one of two things:
1) The theme is having an odd effect on this site only which for some reason is not effecting other live sites or test sites.
2) There is an issue within the database or files of WordPress which only effect this site.
Once we can identify the issue, I can then progress with a plan to extract the data and import it into a clean install where I can check to ensure the same issue has not been carried over before moving the website back to the correct location and making it live.
Thank you in advance for any information or tips you can offer. Please feel free to ask any questions or make any suggestions you can think of.