Support » Plugin: Revision Manager TMC » Conflict with JetPack RelatedPosts

  • Resolved Timofey Drozhzhin

    (@drtimofey)


    JetPack RelatedPosts treats Revision Drafts as actual Posts, resulting in duplicate content.

    Screen-Shot-2019-07-17-at-12-14-50-PM

    In the above screenshot, the first post is linked to a Revision Draft (error 404), while the second post is linked to the actual post.

    I believe the problem traces down to when the Revision Draft is first created. It creates a post_type=post, which gets picked up by JetPack as an actual post. Later, when the Post is changed to post_status=publish, JetPack doesn’t check the post_type, instead just publishes the post for the RelatedPosts.

    Possible solution – do not change the post_status to publish for Revision Drafts.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author themastercut

    (@themastercut)

    Hi @drtimofey! Przemek here,

    hold on, we’re just checking it out 😉 we will let you know what options we have available.


    Przemek

    @themastercut, take your time! I crated a fix on my end. Just letting you know in case you want to fix it for other users.

    Plugin Author themastercut

    (@themastercut)

    Hi @drtimofey, Przemek here,

    thanks for the info, we’re already writing a fix ;). Would you be so kind and check after our plugin update, whether fix also works for you?


    Przemek

    @themastercut of course. Just point me to the file when you’re done.

    Plugin Author themastercut

    (@themastercut)

    @drtimofey great! 🙂 ok. we just updated the plugin to version 2.5.96. Please let us know if it works.


    Przemek

    @themastercut, this fixed it for me. Thank you!

    I do have a question though – Once the Revision Draft is merged to the post, what’s the purpose of leaving the orphaned Revision Drafts and Revisions of Revision Drafts in the wp_posts table?

    Aren’t we better off deleting them as a whole?

    Plugin Author themastercut

    (@themastercut)

    @drtimofey We are glad everything works fine 🙂

    There is a purpose of leaving revision behind.
    Our priority is to make the most bullet-proof mechanism on the market.
    As you can see, we support many possibilities of using Revision Manager, for example with front-end page builders.

    If the post was simply removed while merging, some things could break in WordPress environment, for example other plugin, which detects status update actions.

    There is old revison cleaner built-in our plugin.
    Just go to Admin Dashboard and click button called “Delete [number] revisions”. It will clean up your database 🙂

    Maybe this is a good idea to create some kind of automatic cleaner in next release, what do you think?

    Hope it solves your problem.
    Please, tell us, if there is anything you need help with.

    Thank you for explaining! 🙂

    Maybe this is a good idea to create some kind of automatic cleaner in next release, what do you think?

    You would probably know this best. I was just hoping there is a way to delete them, which you’ve pointed out!

Viewing 8 replies - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.