getEditedPostAttribute("content") doesn't return edited content of published posts #5073
Closed
2 tasks
Labels
[Status] Needs More Info
Follow-up required in order to be actionable.
[Type] Bug
An existing feature does not function as intended
Issue Overview
getEditedPostAttribute("content")
doesn't return the most up-to-date version of the content when called on a published post.Steps to Reproduce
wp.data.select("core/editor").getEditedPostAttribute("content")
in your console.Expected Behavior
getEditedPostAttribute("content")
should return the most up-to-date version of the content.Current Behavior
When I edit a published post and call
wp.data.select("core/editor").getEditedPostAttribute("content")
in the console, the returned content is not the latest version. When I hit update, and try again, I do get the most recent version.NB: when I do the same on a draft, I do get the most recent version either way.
Gutenberg version
Latest master
Todos
The text was updated successfully, but these errors were encountered: