Title: [Plugin: Post Type Switcher] Not saving revisions
Last modified: August 20, 2016

---

# [Plugin: Post Type Switcher] Not saving revisions

 *  Resolved [erezie](https://wordpress.org/support/users/erezie/)
 * (@erezie)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-post-type-switcher-not-saving-revisions/)
 * 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/](http://wordpress.org/extend/plugins/post-type-switcher/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [qayqay12](https://wordpress.org/support/users/qayqay12/)
 * (@qayqay12)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/plugin-post-type-switcher-not-saving-revisions/#post-2437434)
 * Same problem here. Thanks for the fix !
 *  Plugin Author [John James Jacoby](https://wordpress.org/support/users/johnjamesjacoby/)
 * (@johnjamesjacoby)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-post-type-switcher-not-saving-revisions/#post-2437448)
 * This should be fixed in 1.1.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘[Plugin: Post Type Switcher] Not saving revisions’ is closed to new replies.

 * ![](https://ps.w.org/post-type-switcher/assets/icon-256x256.jpg?rev=1823578)
 * [Post Type Switcher](https://wordpress.org/plugins/post-type-switcher/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/post-type-switcher/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/post-type-switcher/)
 * [Active Topics](https://wordpress.org/support/plugin/post-type-switcher/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/post-type-switcher/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/post-type-switcher/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [John James Jacoby](https://wordpress.org/support/users/johnjamesjacoby/)
 * Last activity: [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-post-type-switcher-not-saving-revisions/#post-2437448)
 * Status: resolved