[wp-trac] [WordPress Trac] #27938: Restore This Autosave does not work for custom post types that don't support 'revisions'
WordPress Trac
noreply at wordpress.org
Fri Jul 11 00:13:56 UTC 2014
#27938: Restore This Autosave does not work for custom post types that don't
support 'revisions'
--------------------------+------------------------------
Reporter: bobbingwide | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Revisions | Version: 3.8
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
--------------------------+------------------------------
Comment (by adamsilverstein):
Indeed, autosaves are a special type of revision and currently you cannot
correctly restore them if you have a CPT that doesn't support revisions -
even if they are saved. And despite the fact that the message indicates
you can. Wrong!
Your solution seems reasonable, another approach would be not doing
autosaves for CPTs with revisions disabled;
Maybe the most robust solution would be to introduce an option
supports->'autosaves' for custom post types and enable/disable based on
that - that way autosaves gains a little autonomy, even if it is still a
special type of revision in the back end.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/27938#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list