-
Notifications
You must be signed in to change notification settings - Fork 802
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
Google Fonts module & standalone Gutenberg plugin conflicting with theme block styles #26224
Comments
I don't think this is really being caused by anything in the Google Fonts module. I can reproduce it on a site without Jetpack installed at all by adding this as a mu-plugin: <?php
function test_26224() {
gutenberg_get_global_styles();
}
add_action( 'init', 'test_26224', 11 ); Note the default priority of 10 doesn't work here, it has to be 11 (or, presumably, larger), even though Jetpack's Google Fonts module does it at priority 10, so it seems ordering of the init hooks is important. |
Potential patch opened by @fullofcaffeine #26193 |
I dug further into the problem. Copying my comment from p9F6qB-afB-p2#comment-49394 here for the record
The implication of that is that perhaps our Google Fonts module is in the wrong after all for calling the function too early. |
📌 FINDINGS/SCREENSHOTS/VIDEO
📌 ACTIONS
|
Hi, I've seen inconsistency in post titles between Simple and Atomic like this. Will that be fixed too with this like site title? |
The issue you linked should be fixed on Atomic once the weekly release goes out to them, which will probably happen later today. Same should apply to Simple. I don't know whether the specific comment you linked was related to that issue or not. |
Closing as this should be fixed now by #26193. |
Impacted plugin
Jetpack, Google Fonts Module
p9F6qB-afB-p2
This is an updated version of Automattic/wp-calypso#67739 -- I'd normally move the issue over but the old issue isn't as targeted since we have new findings. We might close the old one to reduce confusion.
Steps to Reproduce
Observe block styles, such as the site title/header are missing while the module is active. E.g.
wp-block-site-title
Site title will appear quite large.
A clear and concise description of what you expected to happen.
For block styles to load properly.
What actually happened
Theme's block styles are missing, large site title for example.
Browser
No response
Other information
Related to p9F6qB-afB-p2
It's also Automattic/wp-calypso#67739 but creating this new specific issue in Jetpack as we now know more about the conflict.
Platform (Simple, Atomic, or both?)
Atomic, Self-hosted
Reproducibility
Consistent
Severity
Some (< 50%)
Available workarounds?
No response
Workaround details
On WPCOM Atomic, we force activate the Google Fonts module within
wpcomsh/feature-plugins/google-fonts.php
-- so there isn't a direct workaround.The text was updated successfully, but these errors were encountered: