Skip to content

v1.25.0

Choose a tag to compare

@BenKalsky BenKalsky released this 20 Aug 22:59
· 16 commits to main since this release
af37dc3

Three more tweaks in the Site Tweaks module, taken from the snippets the Hello Digitizer child theme used to carry in a comment block. All three are off by default: each breaks something visible when it is wrong, and a page that looks broken rather than switched-off is the worst kind of setting to turn on for someone.

Do not load Elementor icon fonts. Font Awesome ships as three stylesheets and eicons as a fourth, and a design that uses no icons loads all four for nothing. A design that does use one shows an empty square, so the switch says to check first.

The handles are not simply deregistered. WordPress skips a style whose dependency is missing, and Elementor registers elementor-common with elementor-icons as a dependency — so removing the handle outright would take that stylesheet with it, turning a missing icon into a page without its CSS. Each handle is registered again with no source instead: still there for anything that depends on it, printing nothing.

Do not load block styles on the front end. A site built entirely in Elementor never uses wp-block-library. Dequeued rather than deregistered, and never in the admin, because the editor screens are built out of those styles. Any page that does contain a block loses its styling, which the switch also says.

Edit in the classic editor. For posts and pages, so a site built in Elementor has one way to edit content rather than two — and for posts and pages only. A blanket switch would take the block editor from types that have no classic equivalent: reusable blocks and template parts are edited with it. dpt_st_classic_editor_post_types is there for a site that wants a custom type included.

Five other snippets were retired rather than moved, and Digitizers/hello-digitizer's SNIPPETS.md now records where each one went: WebP uploads (core has done this since 5.8), vCard uploads, the Google Fonts preconnect, responsive column order in Elementor, and per-site CSS.

Verified with 466 assertions across nine stub harnesses — the Site Tweaks module had none before this — plus php -l, node --check, the four Plugin Check security sniffs at zero, and a Hebrew catalog of 628 strings with nothing orphaned or missing.