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

WordPress Trac noreply at wordpress.org
Mon Mar 25 16:32:37 UTC 2013


#20564: Framework for storing revisions of Post Meta
-------------------------+------------------
 Reporter:  alexkingorg  |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  3.6
Component:  Revisions    |     Version:
 Severity:  normal       |  Resolution:
 Keywords:               |
-------------------------+------------------

Comment (by adamsilverstein):

 [attachment:20564.diff 20564.diff]

  * adds new wp_save_post_revision_meta() - called in _wp_put_post_revision
  * adds wp_restore_post_revision_meta() - added in restore action
  * also stores post format as revision meta (and restores on revision
 restore), seemed to be best way to store post_format
  * requires
 http://core.trac.wordpress.org/attachment/ticket/16215/16215.9.diff to
 work correctly (stores meta on copy of current revision, only present
 after patch)
  * wp_revisions_keep_meta filter to override storing of meta
  * initial testing verified post format and related meta stored and
 restored correctly

 [attachment:20564+16215.diff​ 20564+16215.diff​] combined patch for
 testing

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/20564#comment:28>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list