v2.4.1 — Fix fatal error on Roots/Acorn (Sage-based) themes
Fixed
- Fatal error rendering the toplist block/shortcode on Roots/Acorn (Sage-based) themes. The Alpine.js already-loaded detection called
strpos()directly on every queued script's->src, assuming it is always a plain string. Acorn-based themes register compiled assets with->srcas an asset value object instead, which threw aTypeErrorthe theme's Blade layer turned into a fatal error on every page rendering the block or shortcode.AlpineJsEnqueuernow coerces via__toString()when available and skips the entry otherwise instead of fataling.
Found live on a client site during QA; reproduced in an isolated regression test (same TypeError, no live site needed) before fixing.
Tests
Two new cases pin both the non-Stringable-safe-skip and the Stringable-object-still-detected paths. Full suite: 968 tests green.