Skip to content

Instantly share code, notes, and snippets.

@szbl
Created December 10, 2012 22:28
Show Gist options
  • Save szbl/4253929 to your computer and use it in GitHub Desktop.
Save szbl/4253929 to your computer and use it in GitHub Desktop.
Adds revisions to pages (should be there by default in screen options)
<?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