Un-synced Patterns Behave Differently in WP 7

  • This isn’t necessarily a bug but I have a question about Local Patterns in WordPress 7.0.

    This morning, I added a Local Pattern to a page. It’s a standard set of two nested Container blocks with global styles that I use on all my pages. Instead of simply adding the blocks as it normally did pre-version 7, it added a pattern block. Previously, I’d simply start adding my content but now two things are very different about the editing experience.

    First, the blocks that are inside the pattern no longer appear in the Document Overview tree. It simply shows a single pattern instead of all the nested blocks.

    Second, to edit the content, you now need to click “Edit pattern,” which exposes the blocks in the Document Overview and allows for editing.

    At first, I was alarmed, as this behavior seemed to be the same as synced patterns. But I performed an experiment and confirmed that editing the pattern did not effect other implementations of the unsynced pattern.

    So I have some final thoughts, a question, and a request: I actually like this new behavior, as it simplifies the interface a bit and makes it clearer that the origin of the page content was a local pattern. My question is whether or not GB plans on changing this in a future release. And my request is that if this behavior doesn’t change that the UI somehow clearly distinguishes between an unsynced and synced local pattern.

    Un-synced local pattern

    Editing un-synced local pattern

  • Hi,

    This is a WordPress 7.0 core change rather than anything GP/GB controls — the editor now keeps unsynced patterns wrapped rather than immediately detaching the blocks on insertion.

    As you’ve confirmed, the unsynced behavior is intact — edits to one instance don’t affect others — it’s just the editing UX that’s changed to look more like synced patterns.

    Since this is a core editor decision, GP/GB won’t be changing it on our end. For the distinction request (clearer visual differentiation between synced and unsynced patterns), that’s best raised directly with the Gutenberg team at github.com/WordPress/gutenberg.

  • Thanks for that. I suppose for now I can use a naming convention to distinguish between them.

  • You are welcome!

  • You can disable the new pattern content only mode in the block editor with this snippet – https://snippets.tdrayson.com/yzgkzu/

  • Thanks Taylor, works a treat 🙂
    Dave

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.