Skip to content

Commit

Permalink
Added support for revisions to custom post types.
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanbohacek committed May 11, 2018
1 parent 508543d commit ec976b9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion includes/post-types/bots.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ function register_bot_post_type() {
'filter_items_list' => __( 'Filter items list', 'botwiki' )
),
'taxonomies' => array('post_tag', 'programing_language', 'network' ),
'supports' => array( 'title', 'excerpt', 'editor', 'thumbnail', 'author' ),
'supports' => array( 'title', 'excerpt', 'editor', 'thumbnail', 'author', 'revisions' ),
'hierarchical' => true,
'public' => true,
'show_ui' => true,
Expand Down
2 changes: 1 addition & 1 deletion includes/post-types/resources.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ function register_resource_post_type() {
'filter_items_list' => __( 'Filter items list', 'botwiki' )
),
'taxonomies' => array('resource_type', 'post_tag', 'programing_language', 'network'),
'supports' => array( 'title', 'excerpt', 'editor', 'thumbnail', 'author' ),
'supports' => array( 'title', 'excerpt', 'editor', 'thumbnail', 'author', 'revisions' ),
'hierarchical' => true,
'public' => true,
'show_ui' => true,
Expand Down
2 changes: 1 addition & 1 deletion includes/post-types/tutorials.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ function register_tutorial_post_type() {
'filter_items_list' => __( 'Filter items list', 'tutorialwiki' )
),
'taxonomies' => array('post_tag', 'programing_language', 'network'),
'supports' => array( 'title', 'excerpt', 'editor', 'thumbnail' ),
'supports' => array( 'title', 'excerpt', 'editor', 'thumbnail', 'revisions' ),
'hierarchical' => true,
'public' => true,
'show_ui' => true,
Expand Down

0 comments on commit ec976b9

Please sign in to comment.