[wp-trac] [WordPress Trac] #58664: Eliminate manual construction of script tags in WP_Scripts
WordPress Trac
noreply at wordpress.org
Fri Sep 1 01:48:56 UTC 2023
#58664: Eliminate manual construction of script tags in WP_Scripts
-------------------------------------------------+-------------------------
Reporter: westonruter | Owner:
| westonruter
Type: defect (bug) | Status: accepted
Priority: normal | Milestone: 6.4
Component: Script Loader | Version: 6.3
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests changes- | Focuses: javascript
requested |
-------------------------------------------------+-------------------------
Comment (by westonruter):
I've marked the PR ready for initial review. There are some outstanding
questions for how best we can migrate existing inline scripts over to
using `wp_print_inline_script_tag()`, but it's ready to be checked out.
Here's a proof of concept plugin that enables Script CSP on the frontend
and wp-admin:
https://gist.github.com/westonruter/c8b49406391a8d86a5864fb41a523ae9
--
Ticket URL: <https://core.trac.wordpress.org/ticket/58664#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list