Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion assets/src/js/_acf-fields.js
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,11 @@

if ( acf.isGutenbergPostEditor() ) {
try {
wp.data.dispatch('core/editor').editPost({ meta: { _acf_changed: 1 } });
wp.data.dispatch( 'core/editor' ).editPost(
{ meta: { _acf_changed: 1 } },
// Not a change to undo, so keep it out of the undo history.
{ undoIgnore: true }
);
} catch ( error ) {
console.log( 'ACF: Failed to update _acf_changed meta', error );
}
Expand Down
Loading
Loading