Make WordPress Core

Ticket #20982: 20982-patch01.2.diff

File 20982-patch01.2.diff, 470 bytes (added by adamsilverstein, 12 years ago)

unit test for #20982

  • wp-includes/post.php

     
    49504950        if ( is_wp_error( $post_id ) )
    49514951                return $post_id;
    49524952
    4953         if ( $post_id )
     4953        if ( $post_id ) {
     4954                update_post_meta( $post_id, '_edit_last', $GLOBALS['current_user']->ID );
    49544955                do_action( 'wp_restore_post_revision', $post_id, $revision['ID'] );
     4956        }
    49554957
    49564958        return $post_id;
    49574959}