[wp-trac] [WordPress Trac] #43248: wp_localize_script() and ultimately print_extra_script() not using script_loader_tag filter
WordPress Trac
noreply at wordpress.org
Fri Aug 21 15:30:33 UTC 2020
#43248: wp_localize_script() and ultimately print_extra_script() not using
script_loader_tag filter
----------------------------------------+-----------------------------
Reporter: csmillie | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Script Loader | Version: 4.9.4
Severity: normal | Resolution:
Keywords: needs-patch good-first-bug | Focuses: javascript
----------------------------------------+-----------------------------
Changes (by swissspidy):
* keywords: => needs-patch good-first-bug
* milestone: Awaiting Review => Future Release
Comment:
I think a new filter, e.g. `inline_script_tag`, would be best to avoid any
BC issues. Passing the tag and the handle, and maybe the content (raw JS)
too.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43248#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list