WordPress.org
News
Showcase
Hosting
Extend
Themes
Plugins
Patterns
Blocks
Openverse
↗
︎
Learn
Learn WordPress
Documentation
Forums
Developers
WordPress.tv
↗
︎
Community
Make WordPress
Photo Directory
Five for the Future
Events
Job Board
↗
︎
About
About WordPress
Enterprise
Gutenberg
↗
︎
Get WordPress
Search Trac
Get WordPress
Make WordPress Core
Blog
Handbook
Tickets
Components
Browse Source
Trac Timeline
Create a New Ticket
Search:
Login
Notifications
Context Navigation
Back to Ticket #29276
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
1
494c494
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);
Trac UI Preferences
Download in other formats:
Original Format