WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. erezie
    Member
    Posted 2 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 2 years ago #

    Same problem here. Thanks for the fix !

  3. John James Jacoby
    BuddyPress/bbPress Lead
    Plugin Author

    Posted 2 years ago #

    This should be fixed in 1.1.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic