Skip to content
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

Pattern Nesting Linked #51108

Closed
mike-henderson opened this issue May 30, 2023 · 1 comment
Closed

Pattern Nesting Linked #51108

mike-henderson opened this issue May 30, 2023 · 1 comment
Labels
[Block] Pattern Affects the Patterns Block [Type] Bug An existing feature does not function as intended

Comments

@mike-henderson
Copy link

Description

When nesting patterns with wp:pattern multiple instances of the same pattern are content linked. Also multiple formatting buttons are present depending on block (Align, Bold, Link, etc...).

The nested pattern should not be linked and a user should be able to edit the content independently.

This is especially useful for creating design systems to keep the pattern directory dry.

Step-by-step reproduction instructions

  1. Install default WordPress
  2. Create card.php in pattern directory
  3. Createcard-group.php in pattern directory
  4. Create new page
  5. Add Card Group pattern
  6. Try to edit Heading Block
  7. Observe Heading is linked in all instances of "card", multiple formatting buttons are present.

Screenshots, screen recording, code snippet

Pattern code for card and card-group to be placed in pattern directory.
https://gist.github.com/mike-henderson/86c37d63399ca94f000de22f6fcb4301

Screenshot 2023-05-30 at 1 35 40 PM

Environment info

  • WordPress 6.2.2
  • Twenty Twenty-Three
  • Gutenberg not installed

Please confirm that you have searched existing issues in the repo.

Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

Yes

@ndiego ndiego added [Type] Bug An existing feature does not function as intended [Block] Pattern Affects the Patterns Block labels May 30, 2023
@talldan
Copy link
Contributor

talldan commented May 31, 2023

@mike-henderson Thanks for reporting. This was previously reported and should be fixed in the Gutenberg plugin (in the upcoming version 15.9) - #50629. The fix will make its way across to WordPress 6.3 when that's released.

I'll close the issue, but if you can still reproduce as of Gutenberg 15.9 feel free to drop a comment here or make a new issue.

@talldan talldan closed this as completed May 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Pattern Affects the Patterns Block [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

No branches or pull requests

3 participants