Make WordPress Core

Ticket #29276: revision.diff

File revision.diff, 164 bytes (added by coolmann, 10 years ago)

Updated code to preview ANY revision, not just autosaves.

Line 
1494c494
2<       $preview = !empty($_GET['preview_id'])?get_post($_GET['preview_id']):wp_get_post_autosave($post->ID);
3---
4>       $preview = wp_get_post_autosave($post->ID);