-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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 Global Styles outdated output #59628
Conversation
}, [ | ||
hasBlockGapSupport, | ||
hasFallbackGapSupport, | ||
mergedConfig, | ||
disableLayoutStyles, | ||
isTemplate, |
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.
Adding this line is the fix here. I did some additional cleanup to the hook though.
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
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.
Size Change: +7 B (0%) Total Size: 1.71 MB
ℹ️ View Unchanged
|
Wonderful, thank you for fixing this up quickly! 🎉 |
This bug was identified as an Issue during the RC period and is a critical fix to ensure correct CSS output for WP 6.5. |
Co-authored-by: youknowriad <youknowriad@git.wordpress.org> Co-authored-by: jasmussen <joen@git.wordpress.org> Co-authored-by: andrewserong <andrewserong@git.wordpress.org>
I just cherry-picked this PR to the pick/wp-65-rc-2 branch to get it included in the next release: 984ede0 |
Co-authored-by: youknowriad <youknowriad@git.wordpress.org> Co-authored-by: jasmussen <joen@git.wordpress.org> Co-authored-by: andrewserong <andrewserong@git.wordpress.org>
Closes #59593
What?
When navigating in the site editor, in some conditions, the right global styles CSS is not output properly. This PR fixes that
How?
The issue happens because there's a flag
isTemplate
used to compute the right global styles and when navigating in the site editor, sometimes the flag moves from "undefined" to an actual value set and when that happens, the right global styles were not being regenerated.Testing Instructions
1- Open the site editor with tt4
2- Notice the padding around the template header (in the actual canvas)
3- Navigate to Page 404 in the site editor
4- Go back to the home page
5- In trunk the padding disappears, in this PR the padding remains.