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

WordPress Trac noreply at wordpress.org
Sat Sep 20 04:14:22 UTC 2014


#20564: Framework for storing revisions of Post Meta
-------------------------------------------------+-------------------------
 Reporter:  alexkingorg                          |       Owner:
     Type:  enhancement                          |      Status:  reopened
 Priority:  normal                               |   Milestone:  Future
Component:  Revisions                            |  Release
 Severity:  normal                               |     Version:  3.4
 Keywords:  needs-testing needs-codex dev-       |  Resolution:
  feedback                                       |     Focuses:
-------------------------------------------------+-------------------------

Comment (by Andrew Moawad):

 Replying to [comment:111 adamsilverstein]:
 > [attachment:20564.19.diff]
 > * refresh against trunk
 > * verify unit tests pass
         535                     // Retore the previous revision
         536                     $revisions = wp_get_post_revisions(
 $post_id );
         537                     array_shift( $revisions );
         538                     $last_revision = array_shift( $revisions
 );
         539                     wp_restore_post_revision(
 $last_revision->ID );
 Every time I am testing that I find that the code actually stops here fom
 excuting

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


More information about the wp-trac mailing list