Improved revisions filter by checking for $pagenow. This will prevent a formatting error during a post save. Note: This action should not even be triggered when saving a post. WP?

Signed-off-by: Elliot Condon <e@elliotcondon.com>