- Revisionize
- Edit ACF Fields
- Click Publish
Result: The revision is published, but the ACF fields aren't.
Reason: transition_post_status hook fires too early. The revision $post content has been saved, but its meta fields have not (they're saved shortly after). So the meta fields of the revision aren't updated when we copy_post over top of the original.
Fix: Need to hook into an action later on. Possibly publish_post.
Work Around
- Revisionize
- Edit ACF Fields
- Click Save Draft
- Click Publish