-
Notifications
You must be signed in to change notification settings - Fork 5
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
Inline Block Styles are not added when not authenticated. #26
Comments
Experience the same issue |
I've just pushed a change that removes the "separate block assets" loading 979f5d8. This loads all registered block styles on the page, regardless of usage detection. I'm not sure if being logged in affects anything more than caching, but what I imagine was happening before was the style loader was trying to read the blocks from the current page content, while we actually display blocks from Preventing wporg-gutenberg/source/wp-content/themes/wporg-gutenberg/functions.php Lines 327 to 344 in 979f5d8
|
It's a pretty thin test surface. You'll know quickly whether it will work or not. Go for it! |
When the user is not logged in, some
wp-block-{block_name}
styles are not applied inline. This causes discrepancies with the editor experience and makes it hard to style the page properly and the unauthenticated page looks broken.I spent some time looking into it but wasn't able to figure out the reason it's not working properly.
Start:
https://github.com/WordPress/gutenberg/blob/56c69e1f2e3e14e9feeeb5351f7436fd11a861fd/lib/blocks.php#L185
I modified the code to make sure the styles are being added, and they are, but they don't come out the other end when the page is rendered.
The text was updated successfully, but these errors were encountered: