I am currently implementing a bug tracker based on WordPress with ACF where I make heavy use of revisions.
Today I found that the issue of this thread is still there – even in 2020. Are there any plans to make this a part of the ACF code rather than having to use a dirty hack?
Also, I found that the fix from @joelstransky works fine for posts which are updated via frontend forms, but if the post has just been created, the first revision doesn’t contain the field values. I reckon this is because the code uses the
pre_save_post filter. If I change this to the
save_post filter, it works just fine – but then there are two revisions being created for each save, which is rather annoying.
Any update from the developer(s) would be much appreciated, @elliot.
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!
© 2022 Advanced Custom Fields.