聽 | 聽
聽 | 聽
聽 |
聽 |
聽 |
One
聽 |
聽 |
The plugin implements the removal of unused CSS rules on the page. This works well for all page content, including <template type="amp-mustache">...</template>, but does not work with <script type="text/plain" template="amp-mustache">...</script>.
Preserve CSS rules for elements inside <script type="text/plain" template="amp-mustache">...</script>.
<style>
h2.one { color: green }
h2.two { color: red }
</style>
<template type="amp-mustache">
<h2 class="one">One</h2>
</template>
<script type="text/plain" template="amp-mustache">
<h2 class="two">Two</h2>
</script>
<style amp-custom>...</style> in page head where there is a rule h2.one{color:green} but there is no rule h2.two{color:red}.I believe this may be resolved by fixing #4254.
@westonruter thanks!
This is especially important if full support of <!--{{#foo}}--> is not implemented (issue #26656).
I believe this may be resolved by fixing #4254.
Just verified that this is indeed fixed via the PR that @kienstra did for #4254 :

I'll add a "Fixes #4276" to that PR.
Verified in QA:
聽 | 聽
聽 |
Bug is present with plugin version 1.5 (1.5.0 and 1.5.1).
Bizzare. We did fix this. But I'm not seeing it now.
@spasibych Here鈥檚 a 1.5.2-RC1 pre-release build with the fix for you to test: amp.zip (v1.5.2-RC1-20200403T193031Z-3102c5dea)
We've just published the 1.5.2 release to WordPress.org: https://wordpress.org/plugins/amp/
You can update now via the WordPress admin.
Release notes: https://github.com/ampproject/amp-wp/releases/tag/1.5.2
@westonruter now everything is fine, thank you very much!