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

Respect default AMP enabled status when creating a new post in Gutenberg #1339

Merged
merged 1 commit into from
Aug 14, 2018

Conversation

hellofromtonya
Copy link
Contributor

When first loading a new post, AMP status has not been set yet been saved as meta. Though the Enable AMP toggle shows it as enabled, it's using window.wpAmpEditor.defaultStatus to set the default status.

This PR uses that same strategy for block validation.

When first loading a new post, AMP status has not been set yet by the Enable AMP toggle.  Instead, we'll use default status.
@hellofromtonya hellofromtonya added the Bug Something isn't working label Aug 14, 2018
@hellofromtonya hellofromtonya added this to the v1.0 milestone Aug 14, 2018
@westonruter westonruter changed the title Enable AMP on New Post Respect default AMP enabled status when creating a new post in Gutenberg Aug 14, 2018
@westonruter westonruter merged commit 75bc236 into develop Aug 14, 2018
@westonruter westonruter deleted the fix/enable-amp-on-new-post branch August 14, 2018 21:19
@kienstra
Copy link
Contributor

kienstra commented Sep 5, 2018

Moving To 'Ready for Merging'

If it's alright, I'm moving this to 'Ready for Merging,' as I'm not sure it needs functional testing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants