-
Notifications
You must be signed in to change notification settings - Fork 3
TECH-208: wp-curate issue #51: Add support for selecting a layout #396
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
base: develop
Are you sure you want to change the base?
TECH-208: wp-curate issue #51: Add support for selecting a layout #396
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.
These are proof of concept patterns. The real patterns will be better named, be more different, etc.
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.
These are proof of concept variations. The real variations will be better named, be more different, etc.
Summary
wp-curate issue #51: Add support for selecting a layout
This PR introduces comprehensive support for selecting layouts and block patterns in the
wp-curate/queryblock, aligning it with the functionality found in the Columns and Query Loop blocks. The implementation includes both JavaScript/React and PHP enhancements to enable variation and pattern selection, as well as improved extensibility for future layouts.Notes for reviewers
layoutproperty, enabling users to choose among different layout options (with "list" as the default).registerBlockVariation()) and new PHP classes.Changelog entries
Added
layoutproperty to the query block schema, allowing selection of different layouts (defaulting to "list").registerBlockVariation(), or PHP filterget_block_type_variations.__experimentalBlockVariationPickeror a custom component) for layout selection.Changed
PluginDocumentSettingPanelreflecting changes in WordPress package structure.@wordpress/*dependencies to the latest versions.Deprecated
None.
Removed
Fixed
Security
None.
Ticket(s)