You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@CheesyUK Are you using a custom post type?It looks like your revisions "off by one", check this comment for a potential solution: #21 (comment)
In short... "The off by one issue is can be corrected this by hooking your meta save on 'save_post' instead of 'save_post{post_type}` (you can bail early in the callback to only handle your CPT)."_
See also #17 (comment) for another potential solution.
When carrying out a series of post / post meta updates, it doesn't appear to store the two in sync properly.
Replication
Create a new post.
Add post content 'Content 1'
Add meta in a whitelisted field 'Meta 1'
Save content
Make content change 'Content 2'
Make change to whitelisted meta field 'Meta 2'
Save content
etc.
Click on revisions created and restore.
Post content example 'Content 2'
Meta content example 'Meta 1'
Expected result
I would expect that restoring 'Content 2' would result in also restoring 'Meta 2'
The text was updated successfully, but these errors were encountered: