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

Editor: Fix post visibility null password edits. #17210

Merged
merged 1 commit into from
Aug 27, 2019

Conversation

epiqueras
Copy link
Contributor

Fixes #17209

Description

This PR fixes the issue described in #17209.

The cause was that an old component incorrectly sets the post's password to null when publishing a post as private without a password. The API does not persist that edit so it would not clear after the response.

How has this been tested?

The expected behavior in #17209 was verified to occur.

Types of Changes

Bug Fix: Stop the post visibility component from setting passwords to null when publishing private posts.

Checklist:

  • My code is tested.
  • My code follows the WordPress code style.
  • My code follows the accessibility standards.
  • My code has proper inline documentation.
  • I've included developer documentation if appropriate.

@epiqueras epiqueras added [Type] Bug An existing feature does not function as intended [Package] Editor /packages/editor labels Aug 27, 2019
@epiqueras epiqueras added this to the Gutenberg 6.4 milestone Aug 27, 2019
@epiqueras epiqueras self-assigned this Aug 27, 2019
@gziolo gziolo removed this from the Gutenberg 6.4 milestone Aug 27, 2019
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.

Fixes the problem in my tests 👍

@talldan
Copy link
Contributor

talldan commented Aug 29, 2019

Seems like this has introduced a different issue - #17247.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Package] Editor /packages/editor [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Private posts/pages triggers unsaved changes warnings
4 participants