post_before, post_after identical on update gutenberg bug – WordPress
I am trying to get the $post_before and $post_after objects for comparison when updating a post in WordPress. However, when I submit the update, the $post_before and $post_after objects are identical and show the updated post object. add_action('post_updated', [$this, 'comparePosts'],…