= 5.2.11 =
* Note: this release requires OMGF v6.3.11 or higher. On older versions the clean up below is postponed until OMGF is updated, and Material Icons stylesheets aren’t processed until then.
* Security: hardened the detection of Material Icons stylesheets, in line with OMGF v6.3.11.
* Fixed: Magic Fallbacks kept asking to contact support about fonts which never existed, e.g. ‘Arial,Helvetica,sans-serif !important’, ‘var(–tve-font-family,Mulish)’ and ‘inherit’. Whenever the Google Fonts API returned no fonts for a font family found in a local or inline stylesheet — which is always the case for a font installed with WordPress’ Font Library — OMGF Pro < v5.2.9 ran the optimization again with the entire document, instead of that font’s @font-face statements. Every font-family declaration in that document was then stored as a font family. This release removes those entries from the Optimized Fonts table, and Magic Fallbacks now ignores any value which can’t be the name of a font, instead of reporting it.
= 5.2.10 =
* Note: this release detects stylesheets which were skipped before, so optionally run Save & Optimize once after updating to add them to your cache. Nothing breaks if you don’t.
* Fixed: Optimize Local/External Stylesheets skipped any link element written over multiple lines (or with a line break inside its href attribute), while browsers load those just fine. The pattern used to find them couldn’t match line breaks, but could run past the > which ends an element. Both are fixed, and line breaks are now stripped from the URL before it’s requested, just like browsers do.
* Improved: the classes which collect @import statements (and the one which adds the Material Icons subset) registered their filters once per instance, while they’re constructed on every processing run. Because nothing ever removed those filters, they stacked up within a single request, which meant the same @import could be optimized several times over, and the Material Icons subset could be added to the subset list more than once.