• Boris

    (@boris-paing)


    Handy plugin, thanks.

    It would be great if it worked for previously created pages too.

    • This topic was modified 5 years, 5 months ago by Boris.
Viewing 1 replies (of 1 total)
  • 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 5 years, 4 months ago by slehner.
Viewing 1 replies (of 1 total)
  • The topic ‘Doesn’t work for previously created pages’ is closed to new replies.