[wp-trac] [WordPress Trac] #60111: Twenty Twenty-One: Dark mode toggle script loaded twice in frontend
WordPress Trac
noreply at wordpress.org
Sun Jan 11 06:15:48 UTC 2026
#60111: Twenty Twenty-One: Dark mode toggle script loaded twice in frontend
-------------------------------------+---------------------
Reporter: flixos90 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 7.0
Component: Bundled Theme | Version: 6.3
Severity: normal | Resolution:
Keywords: has-patch needs-testing | Focuses:
-------------------------------------+---------------------
Changes (by sabernhardt):
* version: 6.4 => 6.3
* milestone: Awaiting Review => 7.0
Comment:
> potentially the fix would be to simply not enqueue the assets when `!
is_admin()`?
[56783] used `is_admin()` in Twenty Twenty. I did not notice any problems
with adding Twenty Twenty-One's resources on 'enqueue_block_assets' with
WordPress 6.2 or 5.6, but I could update PR 10714 to include the version
condition and 'enqueue_block_editor_assets' fallback for older WordPress.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/60111#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list