Skip to content

Footnotes in sync patterns can't be edited #60982

Open
@druxstr

Description

@druxstr

Description

Expected

Footnotes content should be editable.

Happening

When a Footnotes block is added to a Sync Pattern, footnotes can't be edited anymore.

The footnotes can't be edited from the Post/Page content, as the Sync Pattern is stored in the content as :

<!-- wp:block {"ref":id} /-->

When editing the Sync Pattern itself (using "Edit original"), a message says that Footnotes are not supported :

Footnotes are not supported here. Add this block to post or page content.

Result : Users can edit the footnote content neither from the Post content, nor from the Pattern editor.

This issue occurred on a blank new WordPress with no plugin.

Step-by-step reproduction instructions

From the editor :

  1. Add a footnote to some content using the Footnotes block
  2. Add a Group
  3. Move the Footnotes block in the Group
  4. Turn the Group into a Sync Pattern (Group > Options > Create pattern)
  5. Try to edit the footnote

You now can't edit the footnote content from the Visual or Code editor.

Screenshots, screen recording, code snippet

wp-uneditable-footnotes.webm

Environment info

WordPress version : 6.5.2
Theme : Twenty Twenty-Four
Browser : Brave, Firefox
Device : Desktop

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Block] FootnotesAffects the Footnotes Block[Feature] Synced PatternsRelated to synced patterns (formerly reusable blocks)[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