-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Site Editor: Fix active edited post #56863
Conversation
Size Change: +7 B (0%) Total Size: 1.72 MB
ℹ️ View Unchanged
|
Flaky tests detected in 1255aed. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/7130847454
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works as described.
40bcdba
to
1255aed
Compare
Nice one, thanks for fixing this up! |
What?
This fixes a regression introduced in #56000 where the currently edited post type and id goes out of sync in the "editor" store causing the "document bar" to show the title of a previously opened tempate/post rather than the current one.
Testing Instructions
1- Open the site editor
2- Navigate to "template a" (random template)
3- go back and navigate to "template b"
4- on the "document bar", the title of the "template b" should be shown not "a".