[wp-trac] [WordPress Trac] #23022: Always set posts to draft status when untrashing

WordPress Trac noreply at wordpress.org
Fri Feb 9 19:49:17 UTC 2018


#23022: Always set posts to draft status when untrashing
-------------------------------------------------+-------------------------
 Reporter:  harrym                               |       Owner:  jaredcobb
     Type:  enhancement                          |      Status:  assigned
 Priority:  normal                               |   Milestone:  Future
Component:  Posts, Post Types                    |  Release
 Severity:  normal                               |     Version:  2.9
 Keywords:  has-patch needs-testing has-unit-    |  Resolution:
  tests                                          |     Focuses:
                                                 |  administration
-------------------------------------------------+-------------------------
Changes (by johnbillion):

 * keywords:  editorial-flow good-first-bug has-patch => has-patch needs-
     testing has-unit-tests


Comment:

 [attachment:23022.patch] is a refreshed patch that includes unit tests.

 Two scenarios that haven't yet been considered:

 1. The `Undo` action that appears immediately after trashing a post. I
 think clicking the `Undo` button should restore the post to its original
 status. Only untrashing a post from the trash should restore it to draft.
 [attachment:23022.patch] includes this functionality.
 2. Untrashing a media file when `MEDIA_TRASH` is defined and `true`.
 Attachments can't be draft, so this needs testing.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/23022#comment:16>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list