-
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
[WP6.3] Styles not applied to some blocks #52199
Comments
Hmm, I tried testing this in 6.3 Beta 2 without Gutenberg active and I am not able to replicate. Are there any other specifics to the setup? I tested in Chrome and Safari. |
I have tested this issue again in various environments and it might be a specific environment or OS-dependent issue. Reproduced:
Not reproduced:
Curiously, I discovered two new things. I further learned that this problem only occurs when In other words, in the Block theme, changing it to add_filter( 'should_load_separate_core_block_assets', '__return_false' ); Conversely, in the Classic theme, the same problem can be reproduced by changing the value to add_filter( 'should_load_separate_core_block_assets', '__return_true' ); I would like to do some more research to see if this is a problem in my environment. |
From my research, I have found that this is a problem that occurs only on WIndowsOS and is due to a core function. I have submitted a ticket to Track and would like to close this issue. |
@t-hamano thank you for directing me to the ticket link at https://core.trac.wordpress.org/ticket/58711. Unfortunately, I cannot do the patch test as I'm not familiar with the steps. However, I'm still experiencing the issue in WP 6.3 RC3 (with the same local environment on a Windows OS), but I can see that https://core.trac.wordpress.org/changeset/56136 has been applied there. However, the problem doesn't show up if I install Gutenberg on top of WP 6.3 RC3. Let me know if you need more information. Thank you. Environment:
|
Hi @franzaurus, As noted in this comment, this issue involves a cache system called transients. Unless this cache is explicitly removed, this issue may not be resolved. You can use a plugin that removes transients, or simply write the following code in the functions.php of an enabled theme, for example, and reload the WordPress site once. If the problem is resolved, this code can be removed. add_action( 'init', function() {
delete_transient( 'wp_core_block_css_files' );
} ); |
@t-hamano Thank you! It solved the problem. |
Thank you, @t-hamano! I too was having an issue with block styles not loading when this was set to true, and deleting the transient fixed it for me as well. |
Originally reported at Making WordPress slack
Description
For some blocks, it appears that styles are not being applied on the front end. At the very least, I think the following behavior is not what would be expected.
box-sizing
not applied)has-background
style) not appliedActivating the latest gutenberg plugin appears to fix this problem.
Step-by-step reproduction instructions
Create a post with some blocks in WordPress 6.3 Beta 2 and confirm how it looks on the front end.
Screenshots, screen recording, code snippet
Environment info
No response
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: