[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
Tue Nov 7 12:45:45 UTC 2023
#43248: wp_localize_script() and ultimately print_extra_script() not using
script_loader_tag filter
--------------------------------------+-------------------------
Reporter: csmillie | Owner: (none)
Type: enhancement | Status: closed
Priority: normal | Milestone:
Component: Script Loader | Version: 4.9.4
Severity: normal | Resolution: duplicate
Keywords: good-first-bug has-patch | Focuses: javascript
--------------------------------------+-------------------------
Changes (by swissspidy):
* status: new => closed
* resolution: => duplicate
* milestone: Future Release =>
Comment:
This is solved in WordPress 6.4 by [56687] / #58664 as
`print_extra_script()` now uses `wp_print_inline_script_tag()` which has a
`wp_inline_script_attributes` filter. CSP is one use case.
See https://make.wordpress.org/core/2023/10/17/script-loading-changes-in-
wordpress-6-4/ for more information.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43248#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list