adamsilverstein / wp-post-meta-revisions

plugin for https://core.trac.wordpress.org/ticket/20564
GNU General Public License v2.0
86 stars 32 forks source link

Viewing revisions in the revision screen #36

Open allonsacks opened 7 years ago

allonsacks commented 7 years ago

I tested this and it is saving the revisions and when restoring a revision it definitely rolls back my assigned custom fields but in the revisions screen I do no see them. I tried adding this code but it did not help though this code does work when I save meta fields using other code (that I want to drop because of drawbacks):

function dc_dcb_pmr_fields( $fields ) {
    global $post;
    $fields['meta_slugl'] = 'Meta name';
    return $fields;
}
add_filter( '_wp_post_revision_fields',    'dc_dcb_pmr_fields' );

Is this something anyone here got working or is it not supported?

allonsacks commented 7 years ago

Ok sorry I now understand the previous comments more and see this was dealt with. I swapped the code from the most current to this one: https://github.com/adamsilverstein/wp-post-meta-revisions/blob/features/display-meta-on-revisions-ui/wp-post-meta-revisions.php

Are there any issues with it? Any reason it was not added to the latest stable version?

adamsilverstein commented 6 years ago

I am working on displaying the meta on the revisions UI in this PR - https://github.com/adamsilverstein/wp-post-meta-revisions/pull/20 - I simply haven't had time to work on it, but feel free to use the code in the branch and contribute your feedback!