-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Move template areas to editor package #60179
Conversation
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Size Change: -11 B (0%) Total Size: 1.72 MB
ℹ️ View Unchanged
|
// Todo: move TemplateAreas (and the selectors it depends) to the editor package, and use it here removing the children prop. | ||
children | ||
} | ||
<TemplateAreas /> |
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.
Should we limit this to the "template" post type for now?
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.
Hi @youknowriad the check was added.
ba965f3
to
a5a65c9
Compare
Co-authored-by: jorgefilipecosta <jorgefilipecosta@git.wordpress.org> Co-authored-by: youknowriad <youknowriad@git.wordpress.org>
Follow up to #59870.
The PostCardPanel panel component only accepted children to pass template areas.
At #59870 (comment) @youknowriad suggested removing the children prop and using template areas directly on the component.
This PR does that change.
To do that change the following sub-changes were done.
Testing Instructions
Open a template and verify the template areas still appear on the template inspector without any noticeable change when compared to the trunk.