[wp-trac] [WordPress Trac] #63240: footnotes problem
WordPress Trac
noreply at wordpress.org
Thu Apr 10 08:35:18 UTC 2025
#63240: footnotes problem
----------------------------------+------------------------------
Reporter: kamago | Owner: (none)
Type: defect (bug) | Status: closed
Priority: normal | Milestone: Awaiting Review
Component: Editor | Version: 6.7.2
Severity: major | Resolution: invalid
Keywords: move-to-github close | Focuses:
----------------------------------+------------------------------
Changes (by vedantsonone1234):
* status: new => closed
* resolution: => invalid
Comment:
Suspected Cause that may be:
A new post may be getting created on save due to wp_insert_post() being
used without passing the ID. This causes footnotes to be saved under a new
post, while the editor loads the old one.
To Investigate it you must do:-
> Ensure wp_insert_post() is updating, not inserting:
>> wp_insert_post(['ID' => $post_id, ...])
Make sure update_post_meta($post_id, 'footnotes', ...) uses the correct
ID.
Check for plugins or code that might duplicate the post (e.g., ACF,
revisions, autosave logic, custom save handlers).
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63240#comment:13>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list