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

Question about built in revision system and BU Versions #17

Open
ChongoShaun opened this issue Mar 20, 2015 · 1 comment
Open

Question about built in revision system and BU Versions #17

ChongoShaun opened this issue Mar 20, 2015 · 1 comment

Comments

@ChongoShaun
Copy link

I have an interesting use case that came up and I'm wondering if something is even possible with BU Versions.

When the user creates a clone page and makes edits, the first 'submit for approval' has no way to tell the difference between the very first version vs the new submitted version. However, if the user submits for approval again after another change, the built in revision system kicks in and you can now view diff's between both submissions. Is there any way to add the ability for the built in revision system to kick in on the very first 'submit for approval' ? this way administrators of the site can see the difference between the original version and the new copy before approving it and moving it live.

@inderpreet99
Copy link
Contributor

This is sort of a problem with the way WordPress handles drafts. When you first create a clone, BU Versions creates a draft alternate post. WordPress inherently doesn't record revisions for draft posts.

When the user "submits for review", the alternate post's status becomes pending. This is when WordPress begins tracking revisions. I don't think we can force WordPress to record revisions in draft mode. One possible solution could be to publish it and then mark it draft. WordPress should correctly keep track of the revisions after that. I'll give it a shot and mark this as an enhancement in the meantime.

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

No branches or pull requests

2 participants