CPT: Enable restoring posts from post actions #6723
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Related: #6454
This pull request seeks to implement the behaviors related to restoring trashed posts from the custom post types list screen.
Testing instructions:
Verify that you can restore a trashed post.
Follow-up Tasks:
Implement notices to reflect success or failure. I had planned to wait for State / CPT: Create notices middleware for observing actions #6645 to be merged before submitting this pull request, but discussion continues to evolve there, so would rather move forward with these changes.Included in 57da87d after having merged State / CPT: Create notices middleware for observing actions #6645.Test live: https://calypso.live/?branch=update/cpt-restore-post