WordPress File wp-includes/revision.php

_set_preview()

Sets up the post object for preview based on the post autosave.