Skip to content

AMP: last AMP compatibility changes impact CSS concatenation #11123

@jeherve

Description

@jeherve

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 filter

Steps to reproduce the issue

  1. Start from a site using Jetpack 6.8.1 and with the following code snippet: add_filter( 'jetpack_implode_frontend_css', '__return_false' );
  2. Separate CSS files are loaded by Jetpack on the frontend.
  3. Update to Jetpack 6.9
  4. Your code snippet does not have any impact anymore, the concatenated jetpack.css is loaded instead. You have to change the priority for it to start working again, like add_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

Metadata

Metadata

Assignees

Labels

AMP[Pri] High[Type] BugWhen a feature is broken and / or not performing as intended

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions