-
Notifications
You must be signed in to change notification settings - Fork 219
Single Product Template: fix compatibility layer logic when the blocks aren't wrapped in a group block #9982
Conversation
The release ZIP for this PR is accessible via:
Script Dependencies ReportThere is no changed script dependency between this branch and trunk. This comment was automatically generated by the TypeScript Errors Report
🎉 🎉 This PR does not introduce new TS errors. |
Size Change: 0 B Total Size: 1.17 MB ℹ️ View Unchanged
|
…s aren't wrapped in a group block
bdcea75
to
d6e7c72
Compare
…layer-in-some-cases-only-the-first-block-is-rendered
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.
The code looks good 🎉 ! I just have a question as the test instructions state:
Only the first paragraph block is visible.
But all three paragraphs are visible with the changes made here (which I suspect is the desired outcome of this PR). Can you please confirm?
Yeah! I updated the testing instructions:
Thanks for catching it! |
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.
Yeah! I updated the testing instructions
Thanks for confirming and updating the description: LGTM! 🚀
This PR fixes #9922. In this PR, I revisit the logic of the Compatibility Layer: It isn't necessary to wrap the blocks inside a div with the class
woocommerce
if any block related to the Single Product Template is used. In this way, it has been easier to fix the issue.Fixes #9922
Testing
Automated Tests
User Facing Testing
WooCommerce Visibility
Performance Impact
Changelog