Make WordPress Core

Opened 7 months ago

Last modified 7 months ago

#60152 new enhancement

Footnotes save to public, unprefixed "footnotes" field

Reported by: milber's profile Milber Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 6.4.2
Component: Editor Keywords:
Focuses: Cc:


We use a custom solution for adding footnotes to posts. All of our posts with footnotes became uneditable after WP's own implementation for footnotes was introduced. When trying to edit a post with "our" footnotes, the editor throws a JS error " is not a function" for this line in core-data.min.js

i = t.footnotes ? JSON.parse(t.footnotes) : [];
if ( =>'') === r.join('')) return n;

Posts containing footnotes do not save or update anymore. We believe this is because WP footnotes are saved to a public, unprefixed meta field "footnotes" (see wp-includes\blocks\footnotes.php, 70), which conflicts with our own custom footnotes implementation, which already uses the exact same field name.

Change History (1)

#1 @sabernhardt
7 months ago

  • Component changed from General to Editor
Note: See TracTickets for help on using tickets.