Skip to content

Command Palette: Site editor-related commands appear in non-block themes #52154

@t-hamano

Description

@t-hamano

Description

For non-block themes, the Site Editor is not accessible, but the command palette allows site editor-related commands to be executed. As a result, if you execute a command, you will receive a message indicating that access is not allowed.

Ideally, I think these commands should be disabled for non-block themes.

Step-by-step reproduction instructions

  1. Go to Appearance > Themes and activate non block theme (i.e Twenty Twenty)
  2. Add new post
  3. Open "Command Center" using keyboard short cut. Windows: Ctrl + k / Mac: ⌘ + K
  4. Type "Templates" and click on "Open Templates" link. You will be redirected to WordPress page.

Screenshots, screen recording, code snippet

2ba8527326f8cb91c5776f098819a1c4.mp4

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

Metadata

Metadata

Assignees

Labels

[Feature] Site EditorRelated to the overarching Site Editor (formerly "full site editing")[Package] Commands/packages/commands[Status] In ProgressTracking issues with work in progress[Type] BugAn existing feature does not function as intended

Type

No type
No fields configured for issues without a type.

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions