Skip to content

Locked (restrict editing) reusable block is still editable #40309

@MarieComet

Description

@MarieComet

Description

With WP 6.0 beta 1.
A locked reusable block (with "restrict editing") text content is still editable.
From my tests, it's happening only for blocks containing text (paragraph and list block for example).
(See video for example).

Step-by-step reproduction instructions

  1. Insert a paragraph or list block, enter some text
  2. Add it to reusable blocks
  3. Lock it (with "restrict editing" option)
  4. Click on the text, I can edit it

Screenshots, screen recording, code snippet

Démo : https://mariecomet.fr/wp-content/uploads/2022/04/locked-reusable-block.mp4

Environment info

  • WP 6.0 beta 1
  • Gutenberg plugin not active
  • Twenty Twenty-One Version: 1.5

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] Block LockingThe API allowing for the ability to lock/unlock blocks[Package] Block editor/packages/block-editor[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