[wp-trac] [WordPress Trac] #59397: Footnotes not saved if the Custom Fields panel is open
WordPress Trac
noreply at wordpress.org
Tue Sep 19 16:08:27 UTC 2023
#59397: Footnotes not saved if the Custom Fields panel is open
--------------------------+-----------------------------
Reporter: GregLone | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Editor | Version:
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
How to reproduce:
1. Create a post with title and some content.
2. Add a footnotes block: add 1 or 2 footnotes to your content.
3. Save your post.
4. While still in your block editor, go to Options (top right of the
screen), Preferences (very bottom of the menu), Panels, enable "Custom
fields", click "Show & Reload Page".
5. Now the "Custom fields" panel is displaying your post's metas.
6. Note that the meta storing the footnotes' content is named `footnotes`,
without the `_` prefix, so it is a public meta. Its value is a JSON
string.
7. Edit your post content by adding another footnote and save your post.
8. Reload the page:
- The anchor in the post content is still there.
- The new footnote has disappeared from the footnotes block.
- The post meta in the "Custom fields" panel doesn't contain the new
footnote either.
I haven't investigated but I guess this issue could be solved by making
the post meta private, so it isn't displayed in the "Custom fields" panel.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/59397>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list