Home › Forums › Backend Issues (wp-admin) › Revisions dont’t work, get php errors… › Reply To: Revisions dont’t work, get php errors…
If it helps, this was the fix, but it requires you to edit ACF core. From Elliot:
I’ve just done some testing and believe to have found a solution.
Would you mind editing the ‘core/revisions.php’ file on line ~120 (wp_post_revision_fields function) and change it to:
function wp_post_revision_fields( $fields, $post = null ) {
// validate page
if( acf_is_screen('revision') || acf_is_ajax('get-revision-diffs') ) {
// bail early if is restoring
if( acf_maybe_get($_GET, 'action') === 'restore' ) return $fields;
// allow
} else {
You will notice there is a new condition that checks if the post is restoring.
This extra line should fix the issue.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.