Skip to content

Block Pattern: Shuffle option doesn't appear when inserted with / in WP 6.6 RC #63068

@laurelfulford

Description

@laurelfulford

Description

When you insert a unsynced pattern using /, the shuffle button doesn't appear in the block toolbar. When you insert the same pattern with the + button in the top right corner, it does appear. I'm not sure if this difference is intentional, or which is right.

Step-by-step reproduction instructions

  1. Using the latest WP 6.6 RC (I tested with RC 2), make at least one unsynced block pattern that's inside of a group block, and give it a category.
  2. Insert the pattern into a page using the / shortcut. Note that the shuffle button doesn't appear.
  3. Insert the pattern into a page using the + button in the top left corner. Note that the shuffle button does appear.

If you view source, the pattern inserted the second way will have something similar to this in the code, but the pattern inserted with / will not:

"metadata":{"categories":["tester"],"patternName":"core/block/16","name":"Another awesome Pattern"}

Screenshots, screen recording, code snippet

Screen.Recording.2024-07-02.at.2.08.44.PM.mov

Environment info

WordPress version: 6.6-RC2 (Gutenberg not installed)
Theme: Twenty Twenty Four

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Feature] PatternsA collection of blocks that can be synced (previously reusable blocks) or unsynced[Type] BugAn existing feature does not function as intended

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions