WordPress.org

Make WordPress Core

Ticket #20982: 20982.diff

File 20982.diff, 549 bytes (added by adamsilverstein, 2 years ago)

updated against trunk, code moved to new location

  • wp-admin/revision.php

     
    3636                'restored_time' => time() 
    3737        ); 
    3838        update_post_meta( $post->ID, '_post_restored_from', $restore_details ); 
     39        update_post_meta( $post->ID, '_edit_last', get_current_user_id() ); 
    3940 
    4041        wp_restore_post_revision( $revision->ID ); 
    4142        $redirect = add_query_arg( array( 'message' => 5, 'revision' => $revision->ID ), get_edit_post_link( $post->ID, 'url' ) );