[wp-trac] [WordPress Trac] #60111: Twenty Twenty-One: Dark mode toggle script loaded twice in frontend
WordPress Trac
noreply at wordpress.org
Tue Dec 19 17:08:23 UTC 2023
#60111: Twenty Twenty-One: Dark mode toggle script loaded twice in frontend
---------------------------+------------------------------
Reporter: flixos90 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Bundled Theme | Version: 6.4
Severity: normal | Resolution:
Keywords: needs-patch | Focuses:
---------------------------+------------------------------
Comment (by flixos90):
@audrasjb @poena @desrosj for visibility
I'm not entirely sure, but potentially the fix would be to simply not
enqueue the assets when `! is_admin()`?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/60111#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list