WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #20564, comment 112


Ignore:
Timestamp:
09/20/2014 04:16:38 AM (7 years ago)
Author:
Andrew Moawad
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #20564, comment 112

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