[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
Wed Feb 7 15:09:45 UTC 2018
#43248: wp_localize_script() and ultimately print_extra_script() not using
script_loader_tag filter
---------------------------+------------------------------
Reporter: csmillie | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Script Loader | Version: 4.9.4
Severity: normal | Resolution:
Keywords: | Focuses: javascript
---------------------------+------------------------------
Changes (by ocean90):
* focuses: accessibility, javascript => javascript
* component: I18N => Script Loader
Comment:
Hello @csmillie, welcome to WordPress Trac!
Thanks for your request. It looks like your proposed change wouldn't be
backward compatible because current plugins expect a URL for the `$src`
argument and not raw JavaScript. Maybe it should be left empty instead.
What do you think? And what's your use case for the filter at this place?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43248#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list