WordPress.org

Forums

Post Type Switcher
[resolved] Not saving revisions (3 posts)

  1. erezie
    Member
    Posted 3 years ago #

    When activated, no revisions seem to be saved unless you deactivated it.

    I solved it by adding the two following lines of code in pts_save_post:

    if( $post->post_type == 'revision' )
        return;

    That seems to have fixed it

    http://wordpress.org/extend/plugins/post-type-switcher/

  2. qayqay12
    Member
    Posted 3 years ago #

    Same problem here. Thanks for the fix !

  3. John James Jacoby
    BuddyPress/bbPress Lead
    Plugin Author

    Posted 3 years ago #

    This should be fixed in 1.1.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Post Type Switcher
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic