[wp-trac] [WordPress Trac] #53638: Duplicate inline JS
WordPress Trac
noreply at wordpress.org
Wed Jun 12 20:28:05 UTC 2024
#53638: Duplicate inline JS
---------------------------+-----------------------
Reporter: malthert | Owner: (none)
Type: defect (bug) | Status: reopened
Priority: normal | Milestone:
Component: Script Loader | Version: 5.8
Severity: minor | Resolution:
Keywords: | Focuses:
---------------------------+-----------------------
Changes (by kkmuffme):
* status: closed => reopened
* resolution: worksforme =>
* severity: blocker => minor
Comment:
This happens when registering/enqueuing a script on a hook before init OR
on init with priority < 0
There currently is a "doing_it_wrong" when using any hook before init
already, however this doing_it_wrong won't trigger if a script is enqueued
on init with priority < 0
(e.g. add_action( 'init', 'foo', -10 );)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/53638#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list