-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Blocks: Move the logic for Template Part label to the block #28828
Conversation
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.
This looks good to me. I didn't test though :)
Size Change: -58 B (0%) Total Size: 1.36 MB
ℹ️ View Unchanged
|
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.
LGTM 👍
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.
Works well! 🚢
Is there any remaining reference to @wordpress/data
@wordpress/core-data
in blocks
? Can we remove it from the package.json
dependencies?
|
Description
Replaces #28789.
This PR removes the cyclic dependency between
@wordpres/blocks
and@wordpress/core-blocks
discovered in #28789.See related comment from @youknowriad: #28789 (comment)
Template Part block should implement
__experimentalLabel
rather itself. Block API should be general and shouldn't know that Template Part block exists in the first place. It improves the implementation from #28330.How has this been tested?
CI tests pass.
Follow instructions from #28330 and ensure that everything works as before.
Types of changes
Refactoring.
Checklist: