[wp-trac] [WordPress Trac] #37366: Restoring a scheduled post can cause it to be published
WordPress Trac
noreply at wordpress.org
Thu Jul 14 14:53:11 UTC 2016
#37366: Restoring a scheduled post can cause it to be published
-------------------------------+--------------------------------------
Reporter: danielbachhuber | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Future Release
Component: Posts, Post Types | Version:
Severity: normal | Keywords: needs-patch dev-feedback
Focuses: |
-------------------------------+--------------------------------------
If you restore a scheduled post, the post will be published if the
scheduled date has already passed.
As a user, I'd expect a scheduled post to remain a draft when restored
from the trash.
Steps to reproduce:
1. Create a new post.
2. Schedule the post to be published two minutes in the future.
3. Trash the post.
4. Wait three minutes.
5. Restore the post from the trash.
6. Look at the post to see that it's been published.
There are a few existing related tickets #23022, #19907, #22350, #18362
that haven't seen much movement. However, I think this particular issue is
more egregious than the others because the user ''accidentally publishes
content they didn't mean to publish''. On higher profile sites,
particularly where there are distribution mechanisms hooked into the
publishing process, this bug can have a severely negative impact (for
instance, accidentally publishing an embargoed post that still wasn't safe
to publish).
The solution will be to clear the post date value, but I'm undecided as to
whether we should do that when a scheduled post is trashed, or when it's
restored from the trash.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/37366>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list