Skip to content
Bug reportDec 1, 2026· 0:28· 11 views

Gutenberg: transforming a paragraph with a footnote into Buttons corrupts the button text

0:28 total

Comments · 0

Be the first to comment.

Bug reportby SceneRecap AI

mediumGutenberg block transforms: the core/paragraph to core/buttons transform, and how it handles core/footnote rich-text format markers when converting rich text to a button label.
os: macOSapp: WordPress Playground, WordPress 7.1 block editor (/wp-admin/post-new.php)dpr: 1locale: en-USbrowser: Chromium 151.0.7922.34timezone: Europe/Berlinviewport: 1280x720

Repro steps

  1. 1.Open a new post in the block editor in WordPress Playground.
  2. 2.Add a paragraph 'Plans start at $5.' with a footnote. A superscript '1' marker appears and a footnote list item '1.' is shown below.
  3. 3.Select the Paragraph block.
  4. 4.Transform the paragraph into a Buttons block.
  5. 5.Inspect the button label.

Expected

The button label reads 'Plans start at $5.' and the footnote is removed cleanly, as stated by the annotation overlay at 15.0s.

Actual

The button label reads 'Plans start at $5.1'. The footnote number '1' is converted to plain text and appended to the label. A Footnotes block is still present below the button.

Evidence

visualBefore the transform, the paragraph 'Plans start at $5.' shows a superscript footnote marker '1' and a footnote list item '1.'. The sidebar shows '5 words, 1 minute read time.'
visualUser clicks the region 'Paragraph block'.
visualAfter the transform, a black button shows 'Plans start at $5.1'. The footnote marker has become plain text in the label.
visualA Footnotes block with 'Footnotes found in blocks within this document...' remains after the transform. The sidebar now shows '4 words, 1 minute read time.'
visualAnnotation overlay reads: Expected '"Plans start at $5." (footnote removed cleanly)', Actual '"Plans start at $5.1" footnote number appended (bug)'.
visualThe button text is still 'Plans start at $5.1' with no further changes.
consoleWarning: 'Loaded WordPress version (7.1) differs from requested version (latest).'
consoleWarning: 'global-styles-css-custom-properties-inline-css was added to the iframe incorrectly. Please use block.json or enqueue_block_assets to add styles to the iframe.' This looks unrelated to the transform.
Issue markdown (copy-paste ready)
## Summary
Transforming a paragraph that contains a footnote into a Buttons block corrupts the button text. The footnote number is converted to plain text and appended to the label.

## Environment
- Chromium 151.0.7922.34, macOS
- Viewport 1280x720, DPR 1, locale en-US
- WordPress Playground, WordPress 7.1 block editor (`/wp-admin/post-new.php`)

## Steps to reproduce
1. Open a new post in the block editor (0.0s).
2. Add a paragraph `Plans start at $5.` with a footnote. A superscript `1` and a footnote list item appear (0.0s).
3. Select the Paragraph block (8.533s).
4. Transform it to Buttons (result visible at 11.0s).

## Expected
The button label reads `Plans start at $5.` and the footnote is removed cleanly.

## Actual
The button label reads `Plans start at $5.1` (11.0s). The footnote marker becomes literal text. A Footnotes block remains in the post (11.0s to 23.0s).

## Evidence
- 0.0s: The paragraph shows a superscript footnote `1`. The sidebar shows `5 words`.
- 11.0s: The button shows `Plans start at $5.1`. The sidebar shows `4 words`. The Footnotes block is still present.
- 15.0s: An overlay confirms Expected `"Plans start at $5."` and Actual `"Plans start at $5.1"`.
- Console at 0s: version mismatch and iframe style warnings only. Neither appears related to the transform.

## Suggested area
The paragraph to buttons transform in Gutenberg. It should strip or handle `core/footnote` format markers instead of flattening them into the label text.

*Recorded with SceneRecap.*

This report was written by SceneRecap from a screen recording. Try SceneRecap free

Turn a screen recording into a bug report like this one.

Repro steps, expected vs actual and the console and network evidence, each with a timestamp. On every plan, Free included.

Try SceneRecap free →