wpengine / wpengine/wp-graphql-content-blocks
Bug: Synced pattern wrappers are stripped.
Open
@theodesp is already working on this.
Since Feb 13, 2025.
needs: reproduction
type: bug
- Dominant language
- PHP
- Stars
- 149
- Forks
- 16
- PR merge metrics
- No merged PRs in 30d
Description
What
Currently, when querying for synced patterns the patterns are stripped just like unsynced patterns.
This makes it impossible to query the pattern data - for example the attributes?.slug that could allow someone to target and "upgrade" the block with a frontend component.
To replicate:
-
Create a synced pattern on a post.
-
Query the post and note the inner blocks are there, but the pattern isnt.
(The first 3 blocks are part of the pattern)
Additional Notes
- Assumedly the issue is with https://github.com/wpengine/wp-graphql-content-blocks/blob/e9354071642aa78368ec7adfbe8badc495e9931b/includes/Data/ContentBlocksResolver.php#L281 merging everything instead of populating inner blocks w. it.
- Partially-synced patterns also dont work but one step at a time.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.