Skip to content

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.

3 participants