wpengine / wpengine/wp-graphql-content-blocks

Bug: Synced pattern wrappers are stripped.

Open
#345 3 comments 0 reactions 1 assignee View on GitHub

@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:
  1. Create a synced pattern on a post.

    Image

  2. Query the post and note the inner blocks are there, but the pattern isnt.

    (The first 3 blocks are part of the pattern)
    Image

Additional Notes

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.