Opened 3 years ago
Closed 3 years ago
#11703 closed enhancement (fixed)
Allow for register_post_type() to enable/disable revisioning of new post_Types
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | 3.0 |
| Component: | Revisions | Version: | 3.0 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | mikeschinkel@… |
Description
At present, Only pages and posts are allowed to be revisioned, It'd be good to leverage the revisioning system for custom post types.
I personally think that it should be disabled by default for post types, and enabled specifically.
I'll submit a patch to this effect at some point.
Attachments (3)
Change History (8)
comment:1
dd32
— 3 years ago
- Keywords has-patch added; needs-patch removed
- Only changes the backend, Doesnt touch the front end implications.
- Need to verify if any front end functionalities need to be modified to allow it
- Pretty sure that the meta boxes will need updating once the Post Type UI goes in
comment:2
dd32
— 3 years ago
- Keywords needs-patch added; has-patch removed
- Owner set to dd32
- Status changed from new to assigned
This depends on the talk for Post_type_supports() chat over in #9674 as well.
Patch is now stale, Will update it when the above is sorted out..
comment:3
mikeschinkel
— 3 years ago
- Cc mikeschinkel@… added
comment:4
dd32
— 3 years ago
- Keywords has-patch added; needs-patch removed
attachment 11703.3.diff added
Implements revisions for all post types that specifically support 'revisions'
Implements passing an array (or string) 'supports' in the args of register_post_type to allow for register-time registering of what features the post type supports.
Could do with a singular/plural form of the post type..
Leaving here for review by anyone who's interested.