Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author slehner

    (@slehner)

    Hi!

    Sorry for the delay.
    No, this Plugin doesn’t store terms in the created revisions.
    And there ist no Snipped to do this. The “Problem” ist, that WP stores this data in an different way than the data this Plugin handles.
    All data this plugin adds to revisions comming from the wp_post-table. The data which post has which terms added are stored in the wp_term_relationship-table.
    Thats not realy a problem – but it needs some extra-time to write the needed function.

    Thanks for the goot idea!
    I hope i will have time to add this feature soon!

    Plugin Author slehner

    (@slehner)

    Hi Boris, sorry for the delay!

    The Plugin works with previously crerated pages – but with one small bug.
    Let me explain:

    1. Revision datas created before the plugin was activated are only the datas from standard WP. So changes done to the additional fields before the plugin was activated are not here. I think this is clear.

    2. When the plugin is activated and you change an allready existing post, then the plugin adds the additional fields to the revisions (post_meta table). And, here comes the small bug, if we have only one revision with these additional fields, then we can’t compare this, because we have only one set of additiona revision fields.

    3. If you change the post a scond time, then the plugin creates a second revison with all the additional fields – and from this time on, we have enought revision-sets to compare and the plugin works as expected.

    So, i think its not really a bug – its more the way the plugin works – and after the second change it works also with the previousely created pages.

    But i could do it better – yes.

    I will keep an eye on it, when I will rewirte the plugin for wordpress 5.0 and above.

    Cheers!

    • This reply was modified 6 years, 3 months ago by slehner.
Viewing 2 replies - 1 through 2 (of 2 total)