WordPress.org

Make WordPress Core

Ticket #20982: 20982.2.diff

File 20982.2.diff, 509 bytes (added by adamsilverstein, 13 months ago)

updated against current trunk

  • wp-admin/revision.php

     
    3333 
    3434        check_admin_referer( "restore-post_{$revision->ID}" ); 
    3535 
     36        update_post_meta( $post->ID, '_edit_last', get_current_user_id() ); 
    3637        wp_restore_post_revision( $revision->ID ); 
    3738        $redirect = add_query_arg( array( 'message' => 5, 'revision' => $revision->ID ), get_edit_post_link( $post->ID, 'url' ) ); 
    3839        break;