[wp-trac] [WordPress Trac] #20564: Framework for storing revisions of Post Meta

WordPress Trac noreply at wordpress.org
Mon Jul 17 21:34:09 UTC 2023


#20564: Framework for storing revisions of Post Meta
------------------------------------+------------------------------
 Reporter:  alexkingorg             |       Owner:  adamsilverstein
     Type:  enhancement             |      Status:  assigned
 Priority:  normal                  |   Milestone:  6.4
Component:  Revisions               |     Version:  3.4
 Severity:  normal                  |  Resolution:
 Keywords:  dev-feedback has-patch  |     Focuses:
------------------------------------+------------------------------
Changes (by adamsilverstein):

 * milestone:  Future Release => 6.4


Comment:

 @mikeschroder thanks for the ping...

 Now that we are using meta directly in core for storing footnotes, we can
 re-consider landing support for revisioning of meta directly in core.

 I took the existing code from the plugin and attempted to merge that back
 into core at the appropriate places in https://github.com/WordPress
 /wordpress-develop/pull/4859

 This is a first pass but should be close to ready to test with footnotes.

 To test:
 * Create a post with footnotes then change several times changing footnote
 each time... check
 * saving and revisioning of footnotes, restored when restoring post
 * saving of footnotes into autosaves (pause until autosave, close window
 ignoring window, re-open and restore autosave)
 * footnote updates showing correctly in previews (without publishing
 first)

 What is missing?
 * All of the [tests https://github.com/adamsilverstein/wp-post-meta-
 revisions/blob/main/tests/test-meta-revisions.php] from the plugin can be
 moved over.



 @chrissiq it would be great if you could review/test this as well since
 you are familiar with fixes on the repo.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/20564#comment:142>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list