-
Notifications
You must be signed in to change notification settings - Fork 799
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
AMP: last AMP compatibility changes impact CSS concatenation #11123
Comments
itself works, not just 99. |
@macmanx2 confirmed this also impacts another filter on that list, |
Thanks, Jeremy! Confirming that If you're using the Code Snippets plugin, simply setting the priority there to 99 doesn't seem to fix the problem, but if you change your snippet to |
Hey gang! Just noting I got burned by this. It's a heck of a thing to have essentially dequeued Jetpack CSS only to have it show up all the sudden by upgrading a version with no warning. |
It would be nice if your plugin would first check to see if any of the modules need to have your |
@Garconis We currently treat those 2 files a bit differently, as they do different things:
|
@jeherve thanks! For now, I will keep both removed via PHP, but will keep an eye on the pulls/issues to adjust as needed. |
In #10945, we made changes to our AMP compatibility file that impact the way we load CSS. Unfortunately, this change impacts all site owners currently using the
jetpack_implode_frontend_css
filterSteps to reproduce the issue
add_filter( 'jetpack_implode_frontend_css', '__return_false' );
jetpack.css
is loaded instead. You have to change the priority for it to start working again, likeadd_filter( 'jetpack_implode_frontend_css', '__return_false', 99 );
.I have not tested, but I suspect this also impacts the other filters in use by the AMP compatibility file.
Reported here:
https://jetpack.com/2019/01/10/jetpack-6-9-introducing-more-tools-for-the-new-block-editor/#comment-193496
The text was updated successfully, but these errors were encountered: