Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Fix: Private post with future date becomes public on update #18834
Currently, If we create a post set a future date and change the visibility to private, the post saves as private with a future publish date. When reloading, the information is right. After the reload, if we change something in the post and then press update, the post becomes public right away.
The problem is the order of the post status evaluation rules; we first see if the date is in the future, and if yes, we set a future status. We should first verify if the post is private and if yes, we should keep the status.
How has this been tested?
I verified the bug I described above is fixed.