Ticket #20982: 20982-patch01.2.diff
File 20982-patch01.2.diff, 470 bytes (added by , 12 years ago) |
---|
-
wp-includes/post.php
4950 4950 if ( is_wp_error( $post_id ) ) 4951 4951 return $post_id; 4952 4952 4953 if ( $post_id ) 4953 if ( $post_id ) { 4954 update_post_meta( $post_id, '_edit_last', $GLOBALS['current_user']->ID ); 4954 4955 do_action( 'wp_restore_post_revision', $post_id, $revision['ID'] ); 4956 } 4955 4957 4956 4958 return $post_id; 4957 4959 }