Created
December 10, 2012 22:28
-
-
Save szbl/4253929 to your computer and use it in GitHub Desktop.
Adds revisions to pages (should be there by default in screen options)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: Add Page Revisions | |
Author: theandystratton | |
Author URI: http://sizeableinteractive.com | |
Description: Adds post type support for revisions to pages. | |
*/ | |
add_action( 'init', 'szbl_add_page_revision_support' ); | |
function szbl_add_page_revision_support() | |
{ | |
add_post_type_support( 'page', array( 'revisions', 'excerpt' ) ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment