Post update doesn't fail cleanly when ACF fields are invalid #10284
Labels
[Type] Plugin Interoperability
Incompatibilities between a specific plugin and the block editor. Close with workaround notes.
Describe the bug
When saving a post using gutenberg which has custom fields, or some other field requiring validation, if the validation fails the request to "wp-admin/post.php" will return 500. However the UI will remain locked in "saving", making it impossible to update the contents or retry saving any further.
Further, a "Post updated!" notification appears, even though the post update has failed.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
When the request to "post.php" fails, some error should be displayed at best. At worst the UI should fall out of the "Updating..." state and allow the user to edit the contents again and retry updating.
The UI reads "Post Updated!" even though it is not. This shouldn't be displayed.
Screenshots
(erroneous 'Post Updated!' notification and locked 'Saving...' state)
Desktop:
Additional context
The text was updated successfully, but these errors were encountered: