Skip to content

Template Part block should not be available in the Post Editor inserter #30668

@priethor

Description

@priethor

Description

As of 10.4-RC1, Template Part blocks can be added to the Post Editor in the same way reusable blocks can be added. However, template parts can only be created from the Site Editor.

This issue is related to #30669, which presents the opposite logic for reusable blocks. Original discussion in #30308

Step-by-step reproduction instructions

  1. Go to 'Site Editor'
  2. Select any block and click on "Make template part"
  3. Go to the Post Editor.
  4. Open the inserter and look for the recently created template part.

Expected behaviour

Template parts should only be available to insert in template editors.

Actual behaviour

Template parts can be inserted in posts or pages.

WordPress information

  • WordPress version: 5.7
  • Gutenberg version: 10.4-RC1
  • Are all plugins except Gutenberg deactivated? Yes
  • Theme used? TT1 Blocks

Metadata

Metadata

Assignees

Labels

Needs DevReady for, and needs developer efforts[Block] Template PartAffects the Template Parts Block[Feature] InserterThe main way to insert blocks using the + button in the editing interface[Priority] HighUsed to indicate top priority items that need quick attention[Status] In ProgressTracking issues with work in progress[Type] BugAn existing feature does not function as intended

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions