Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow transitioning status from scheduled to draft #8332

Merged
merged 1 commit into from
Aug 3, 2018

Conversation

earnjam
Copy link
Contributor

@earnjam earnjam commented Jul 31, 2018

Description

Modifies the PostSavedState component and the PostSwitchToDraftButton component to respect scheduled posts. This allows transitioning of posts from scheduled to draft without publishing first. Fixes #8327

How has this been tested?

Tested manually:

  1. Create a new post
  2. Set the date for sometime in the future.
  3. Click Schedule
  4. Switch to Draft button appears.
  5. Optionally click Switch to Draft and get the alert to confirm unscheduling post, same as for unpublishing.
  6. Change date to sometime in the past. Switch to Draft button remains as the alternative to Publish

Screenshots

gutenberg-switch-to-draft

Types of changes

Bug Fix
New Feature

Checklist:

  • My code is tested.
  • My code follows the WordPress code style.
  • My code follows the accessibility standards.
  • My code has proper inline documentation.

@earnjam earnjam added the [Feature] Saving Related to saving functionality label Aug 1, 2018
Copy link
Member

@jorgefilipecosta jorgefilipecosta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code worked as expected in my tests and it looks good to me 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Saving Related to saving functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants