Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Save replaced post as a revision or new alternate/clone #18

Open
deltafactory opened this issue May 21, 2015 · 1 comment
Open

Save replaced post as a revision or new alternate/clone #18

deltafactory opened this issue May 21, 2015 · 1 comment

Comments

@deltafactory
Copy link

I'm not familiar with the internals of this plugin nor the core revision system, but I was wondering if it would be practical to save post and postmeta of the the original post as a revision?

Alternately, is it practical to immediately save the post being replaced as a new clone? This would let those who regularly swap between two versions of a page to do so more easily.

@deltafactory deltafactory changed the title Save replaced post as a revision or new alternate/cone Save replaced post as a revision or new alternate/clone Jul 17, 2015
@inderpreet99
Copy link
Contributor

Hi,

I tested out the plugin. It correctly saves the updated post as a revision since the plugin uses WP's wp_update_post().

The postmeta in WP is not revision controlled. We will have to wait until this feature is added to WP core: https://core.trac.wordpress.org/ticket/20564

Saving the old post as a clone when it is being replaced is a special workflow case for you. I'm not sure if it is valuable to any other users. It is not worth adding to the plugin as a feature. The plugin can add hooks so one can try to do this from the outside (in another plugin/theme), but that's about as far as it should go. Let us know if you're interested in this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants