-
Notifications
You must be signed in to change notification settings - Fork 384
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
Don't export the Latest Stories data in the AMP Story editor #2369
Conversation
As Pascal pointed out, this data isn't needed in that case.
Build error:
|
A unit test failed, so update it for the latest change.
Clean up the state after each test, to ensure that there isn't a failed test.
Hi @westonruter, sorry about that. The build is passing now. |
It doesn't seem this PR has any practical effect? I checked the |
@westonruter, good point. I also see that Maybe this could prevent a future regression, but otherwise it looks like this PR isn't very useful. |
As I mentioned in #2355 (comment):
|
But I think it is preferable to keep all the AMP Stories code in this one class, as it makes it easier turn on/off. |
Fair enough. I guess we'd need to analyze all the code at some point anyway if we want to make it easier / bulletproof to completely turn off. |
As @swissspidy pointed out, this data isn't needed in that case.
This uses a similar conditional to that in
enqueue_block_editor_styles()
.