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

Toggling Pending Review reveals "Move to trash" button #2022

Closed
aduth opened this issue Jul 26, 2017 · 0 comments · Fixed by #2026
Closed

Toggling Pending Review reveals "Move to trash" button #2022

aduth opened this issue Jul 26, 2017 · 0 comments · Fixed by #2026
Assignees
Labels
General Interface Parts of the UI which don't fall neatly under other labels. [Type] Bug An existing feature does not function as intended

Comments

@aduth
Copy link
Member

aduth commented Jul 26, 2017

Issue Overview

When toggling "Pending review" on a new post, the "Move to trash" button is shown, despite the post not yet having been saved.

Steps to Reproduce

  1. Navigate to Gutenberg > New Post
  2. In Settings, toggle Pending review

Expected Behavior

The pending review toggles, but otherwise no changes to display.

Current Behavior

The pending review toggles and reveals a "Move to trash" button. Even when toggling back off, the button remains.

Related Issue

Suspected to be a regression of #1967, specifically in that post "New"-ness is determined by its status being auto-draft. In this behavior, I believe because the status is changing from "Pending", then back to "Draft" explicitly, the editor no longer considers the post to be new.

@aduth aduth added General Interface Parts of the UI which don't fall neatly under other labels. [Type] Bug An existing feature does not function as intended labels Jul 26, 2017
@aduth aduth self-assigned this Jul 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
General Interface Parts of the UI which don't fall neatly under other labels. [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant