-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Footnotes: footnotes are not reverted or restored with post revisions #52541
Comments
@ramonjd |
Thanks for the nudge @firoz2456 Updated 👍🏻 |
WordPress 6.3-beta4-56216 Footnotes.revisions.not.working.mp4 |
For reference, here is the core trac ticket regarding supporting revisions for post meta: |
Wow, that one has grey hairs 😆 10 years and still kicking! |
@ramonjd given that this is related to that Trac issue, should this be punted? |
I believe it should be punted and we should look into this for a future release. |
Sounds good to me, thanks 👍🏻 |
Why is this being punted? This seems like a really bad issue to me. People rely on revisions and we're not saving footnotes? That's content loss. |
💯 It is a really bad issue. But my understanding is that a fix requires https://core.trac.wordpress.org/ticket/20564 to be merged in 6.3, which sadly appears unlikely at this point. |
I personally would like to see the "post meta in revisions" issue resolved properly instead of adding a custom handler for footnotes. |
Note the code on https://github.com/adamsilverstein/wp-post-meta-revisions is more up to date that what is on the trac ticket. I will try to post an updated patch there. We can work on trying to land this in core, in the meantime GB could use the plugin code to revision footnote meta if desired. |
I tested revisioning footnotes meta using the plugin and observed it worked mostly - I experienced the "off by one" issue related to the timing of the save. |
Description
When restoring a post's revision, the footnotes associated with that revision are not restored.
Only the latest version of the post's footnotes will appear on the page at any one time.
The consequence is that users can't access a "true" record of a post's changes.
First noticed here.
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
2023-07-12.14.12.22.mp4
Environment info
Gutenberg 16.2
WordPress 6.3-beta3-56201 running Twenty Twenty-Three theme.
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
The text was updated successfully, but these errors were encountered: