elliotcondon/acf — pull request #210 by parisholley (2013-12-23 07:57:01+00:00)
Title: Revision Changes

Would be great to get a second pair of eyes on this, but I ran into some problems with revisions that this solution seemed to fix.

1) Wordpress throws an exception when ACF fields do more than store a string in post metadata. See wp-includes/revision.php:106, seems to be a limitation with how they handle data.

2) When a restore is successful, the diffs were showing as if I had removed all the data from the post because ACF meta data isn't copied to the revision created during a "restore". That being said, this behavior actually feels incorrect, as I wouldn't expect a new revision to be created during a restore.I HAD a change where pagenow == 'revision.php' wasn't true if restoring, but it appears to make going back to an older revision act weird (data is replaced, but WP still says it is pointing to the previous revision). Need to do some more digging.