Skip to content

Patterns with Inserter: false are visible in Inserter with Gutenberg 13.0 #40414

Closed

Description

@ndiego

Description

Prior to Gutenberg 13.0, you could register patterns with 'inserter' => false, in JS or the Inserter: false comment in PHP (the new method in 12.9) and the pattern would not be visible in the inserter. In 13.0 this no longer works. My guess is this has to do with some recent changes to the Patterns API, but not sure.

Step-by-step reproduction instructions

  1. Make sure 13.0+ is installed
  2. Install the Twenty Twenty-Two theme
  3. Open the Pattern Explorer and you will see an "Uncategorized" section
  4. This section will contain the patterns that should be hidden.

Screenshots, screen recording, code snippet

Patterns Visible in the Editor"
image

Example 404 pattern with 'inserter' => false:
image

Environment info

No response

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

Activity

  1. added
    [Type] Bug
    [Feature] Patterns
    on Apr 18, 2022
  2. self-assigned this
    on Apr 18, 2022
  3. added
    [Status] In Progress
    on Apr 18, 2022
  4. moved this from Triage to In Progress in WordPress 6.0 Editor Taskson Apr 18, 2022
  5. Repository owner moved this from In Progress to Done in WordPress 6.0 Editor Taskson Apr 18, 2022
  6. removed
    [Status] In Progress
    on May 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

[Feature] Patterns[Type] Bug

Type

No type

Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions