• Resolved spitnale

    (@spitnale)


    Weird issue. Revsionize works perfect in pages – shows the revision and who made the change – but when used on a custom post type it works – but does not save the revision / updated by / revision to see the before & after.

Viewing 15 replies - 1 through 15 (of 17 total)
  • Plugin Author jamiechong

    (@jamiechong)

    Are you talking about the built in WordPress revision tracker? I actually haven’t tested how Revisionize works with that at all and I’m surprised it works for pages even.

    I’ll try setting up a CPT and see what happens.

    Thread Starter spitnale

    (@spitnale)

    Yep. WordPress Revision tracker. The site I am using this on requires auditing to track all changes.

    Plugin Author jamiechong

    (@jamiechong)

    Do you even see the option to view the WordPress Revisions? By default, when creating a new custom post type, that feature is not enabled.

    Plugin Author jamiechong

    (@jamiechong)

    It seems like that’s the problem. You need to add “revisions” to your supports array. See this article.
    https://wordpress.stackexchange.com/questions/139031/enable-revisions-for-custom-post-type

    Going forward your edits should be tracked.

    Thread Starter spitnale

    (@spitnale)

    Yeah – the revisions are tracked and it is in my post type. If I just click update on a published post, it will show the history but not if I revisionize it.

    Plugin Author jamiechong

    (@jamiechong)

    My tests show the change I make when I publish a revisionized cpt. Can you provide very explicit step by step instructions of exactly what you’re doing? Include every single button press and changes you’re doing so I can repeat them.

    Thread Starter spitnale

    (@spitnale)

    jamiechong – looks like if I “save draft” of the revision – leave then come back and publish that is the problem.

    Plugin Author jamiechong

    (@jamiechong)

    Even still, I’m seeing a revision entry for when I publish the revision. Are you expecting to see all the revisions of the times you click “save draft”?

    I’m going to be honest and say that a fix for this isn’t a high priority for me.

    Thread Starter spitnale

    (@spitnale)

    jameiechong,
    Looks like its ACF fields that won’t save the revision.
    Update ACF field
    Save Draft
    Leave
    Comeback hit publish
    Works as expected but doesn’t save revision.

    Again I know this is labeled resolved and it’s a detail that may be not that important to you – but any extra help would greatly be appreciated. Odds are that other users that require revision history with ACF may have similar issues.

    Thanks!

    Plugin Author jamiechong

    (@jamiechong)

    Okay this is different. I was able to confirm that ACF field revisions weren’t tracked. I found a solution and will release it soon.

    Thread Starter spitnale

    (@spitnale)

    Jamiechong your are the best man. Anyway I can support $$ in the development of this plugin?

    Plugin Author jamiechong

    (@jamiechong)

    I appreciate the gesture, but I don’t have a donate button or anything like that setup. If I ever release a PRO version or something, you can support me by purchasing that!

    Check out v1.3.3 and let me know if there’s any problems with it.

    There’s still the issue (can’t get around it), where multiple updates to the revisionized post aren’t tracked in the WP Revisions Tracker. Only the changes once the revisionized post is published are tracked.

    Thread Starter spitnale

    (@spitnale)

    jamiechong,
    No dice on tracking for me still. Just doesn’t save the revision still on publish after saving a draft first of a custom post type with acf input.

    Plugin Author jamiechong

    (@jamiechong)

    Ghetto. Weird edge case where if you Save draft changes of ACF fields _only_ and then publish after without making any changes. If you save drafts with changes to content, it works.

    Will have to investigate this further some other time. For now you can work around by making your final change then publish instead of save draft and then publish with no changes.

    Plugin Author jamiechong

    (@jamiechong)

    Before I deploy this to wp.org, can you try this version out? It should solve that edge case.

    https://github.com/jamiechong/revisionize/archive/version/1.3.4.zip

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘Custom Post Type Revisions not updating’ is closed to new replies.