Block Pattern Patch#31
Merged
Merged
Conversation
✅ WordPress Plugin Check Report
📊 ReportAll checks passed! No errors or warnings found. 🤖 Generated by WordPress Plugin Check Action • Learn more about Plugin Check |
This addresses the WordPress core limitation where user-created patterns (wp_block post type) cannot have blockTypes metadata and therefore cannot be filtered by template part area.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR bumps Elayne Blocks to 2.5.8 and aligns plugin metadata in
elayne-blocks.phpandreadme.txt, keeping the header fields, version constant, and stable tag consistent for the release. The changelog is updated to capture a block pattern patch that removes reliance ontemplateTypeswhile retaining menu categorization and block type targeting for improved editor compatibility. A new documentation page explains WordPress 6.7 limitations around user-created patterns in menu template parts and provides concrete workarounds for users and theme authors. In total, 4 files are updated with 181 insertions and 10 deletions, focusing on release notes and developer guidance rather than new runtime behavior.Versioning and Plugin Metadata:
ELAYNE_BLOCKS_VERSIONconstant inelayne-blocks.phpto 2.5.8 to keep runtime versioning consistent with the release.readme.txtstable tag and changelog entries to 2.5.8 so WordPress.org metadata reflects the published build.Pattern Registration and Compatibility:
templateTypesin menu template part pattern registration to reduce editor compatibility issues while preservingblockTypestargeting.CHANGELOG.mdandreadme.txtto clarify the intended behavior of mega menu pattern registration.Documentation and Developer Guidance:
docs/PATTERN-LIMITATIONS.mdto explain core limitations with user-created patterns and template part areas in WordPress 6.7.core/template-part/menu.Files Changed:
CHANGELOG.md(Modified)elayne-blocks.php(Modified)readme.txt(Modified)docs/PATTERN-LIMITATIONS.md(Added)