-
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
Fix Template Inserter #3020
Fix Template Inserter #3020
Conversation
const templateContents = await page.evaluate( () => { | ||
const contents = []; | ||
const previews = document.querySelectorAll( '.block-editor-block-preview .block-editor-inner-blocks.has-overlay' ); | ||
previews.forEach( function( preview, index ) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds like an ideal use case for Array.prototype.reduce
:-)
We might need to add another block deprecation for the quote block:
Gutenberg is going away from these text-align inline styles. |
If that happens then perhaps the deprecation will be implemented upstream instead? |
They did: WordPress/gutenberg#16779 Does that mean it's not working? 🤔 Or are we perhaps overriding the core deprecation? |
In any case, we can look at that independent from this PR if needed. |
Will check if that's an easy fix. |
It means that it was working properly, otherwise, it would have given a block validation error inside the template :) Updated the template and seems to work OK now (OK meaning without console errors). |
Approved Hi @miina, BeforeAfter |
Fixes #3016.
Closes #2887
Todo: