Skip to content

Block Pattern: Shuffle button appears in toolbar even when no patterns to shuffle to in WP 6.6 RC 2 #63069

@laurelfulford

Description

@laurelfulford

Description

When you insert an unsynced block pattern that has a category, it can still show the shuffle button, even if there are no other patterns that he button will load.

Step-by-step reproduction instructions

  1. Create a simple unsynced pattern with a unique category; make sure the contents of the group are wrapped in a single group block.
  2. Using the + menu in the top left, insert the pattern (I ran into a separate issue where the shuffle button wouldn't appear when the pattern was inserted with /).
  3. Note the shuffle button appears, but when you click it, nothing seems to happen.

Screenshots, screen recording, code snippet

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

Environment info

  • WordPress 6.6 RC 2 (Gutenberg plugin not installed)
  • Twenty Twenty Four theme

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[Status] In ProgressTracking issues with work in progress[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