From ec976b9c9d3c5d289fb75ad1a4ea5a27c78dfe57 Mon Sep 17 00:00:00 2001 From: Stefan Bohacek Date: Thu, 10 May 2018 20:44:48 -0400 Subject: [PATCH] Added support for revisions to custom post types. --- includes/post-types/bots.php | 2 +- includes/post-types/resources.php | 2 +- includes/post-types/tutorials.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/post-types/bots.php b/includes/post-types/bots.php index 90775c0..2e797ac 100644 --- a/includes/post-types/bots.php +++ b/includes/post-types/bots.php @@ -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, diff --git a/includes/post-types/resources.php b/includes/post-types/resources.php index 6b61326..f1b77f8 100644 --- a/includes/post-types/resources.php +++ b/includes/post-types/resources.php @@ -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, diff --git a/includes/post-types/tutorials.php b/includes/post-types/tutorials.php index 4e7e7ac..04da650 100644 --- a/includes/post-types/tutorials.php +++ b/includes/post-types/tutorials.php @@ -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,